aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/acinclude.m4
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-05-16 15:08:02 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-05-31 13:17:45 +0100
commit51cf0b3949b88b5e622872e4dac019ceb27400e1 (patch)
tree5de0f7f7e9c98935fe07b7e8d2453131b4a51e45 /libstdc++-v3/acinclude.m4
parent7037e7b6e4ac41e536bdb9a2efcf546ec4d77166 (diff)
downloadgcc-51cf0b3949b88b5e622872e4dac019ceb27400e1.zip
gcc-51cf0b3949b88b5e622872e4dac019ceb27400e1.tar.gz
gcc-51cf0b3949b88b5e622872e4dac019ceb27400e1.tar.bz2
libstdc++: Disable embedded tzdata for all 16-bit targets
libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ZONEINFO_DIR): Extend logic for avr and msp430 to all 16-bit targets. * configure: Regenerate.
Diffstat (limited to 'libstdc++-v3/acinclude.m4')
-rw-r--r--libstdc++-v3/acinclude.m415
1 files changed, 9 insertions, 6 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index 8129373..eb30c4f 100644
--- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4
@@ -5426,12 +5426,15 @@ AC_DEFUN([GLIBCXX_ZONEINFO_DIR], [
zoneinfo_dir=none
;;
esac
- case "$host" in
- avr-*-* | msp430-*-* ) embed_zoneinfo=no ;;
- *)
- # Also embed a copy of the tzdata.zi file as a static string.
- embed_zoneinfo=yes ;;
- esac
+
+ AC_COMPUTE_INT(glibcxx_cv_at_least_32bit, [sizeof(void*) >= 4])
+ if test "$glibcxx_cv_at_least_32bit" -ne 0; then
+ # Also embed a copy of the tzdata.zi file as a static string.
+ embed_zoneinfo=yes
+ else
+ # The embedded data is too large for 16-bit targets.
+ embed_zoneinfo=no
+ fi
elif test "x${with_libstdcxx_zoneinfo}" = xno; then
# Disable tzdb support completely.
zoneinfo_dir=none