aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-01-31 22:11:49 +0000
committerJonathan Wakely <jwakely@redhat.com>2023-02-01 21:00:20 +0000
commit7314558c938245e5963494629e6436e0dccf1c8b (patch)
tree07c1113793a8521e10df30206082dbe14beb940a
parent88a2a09dd4529107e7ef7a6e7ce43acf96457173 (diff)
downloadgcc-7314558c938245e5963494629e6436e0dccf1c8b.zip
gcc-7314558c938245e5963494629e6436e0dccf1c8b.tar.gz
gcc-7314558c938245e5963494629e6436e0dccf1c8b.tar.bz2
libstdc++: Do not embed tzdata.zi for 8-bit and 16-bit targets
The string literal containing the static tzdata.zi information is too large for some targets, so do not enable it by default for avr-*-* and msp430-*-*. libstdc++-v3/ChangeLog: * acinclude.m4 (GLIBCXX_ZONEINFO_DIR) [avr-*-*, msp430-*-*]: Set embed_zoneinfo=no * configure: Regenerate.
-rw-r--r--libstdc++-v3/acinclude.m48
-rwxr-xr-xlibstdc++-v3/configure8
2 files changed, 12 insertions, 4 deletions
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index 982e979..5136c05 100644
--- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4
@@ -5201,8 +5201,12 @@ AC_DEFUN([GLIBCXX_ZONEINFO_DIR], [
zoneinfo_dir=none
;;
esac
- # Also embed a copy of the tzdata.zi file as a static string.
- embed_zoneinfo=yes
+ 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
elif test "x${with_libstdcxx_zoneinfo}" = xno; then
# Disable tzdb support completely.
zoneinfo_dir=none
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index a298cbd..68ee94c 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -71557,8 +71557,12 @@ fi
zoneinfo_dir=none
;;
esac
- # Also embed a copy of the tzdata.zi file as a static string.
- embed_zoneinfo=yes
+ 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
elif test "x${with_libstdcxx_zoneinfo}" = xno; then
# Disable tzdb support completely.
zoneinfo_dir=none