]> gcc.gnu.org Git - gcc.git/commitdiff
libstdc++: Do not embed tzdata.zi for 8-bit and 16-bit targets
authorJonathan Wakely <jwakely@redhat.com>
Tue, 31 Jan 2023 22:11:49 +0000 (22:11 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 1 Feb 2023 21:00:20 +0000 (21:00 +0000)
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.

libstdc++-v3/acinclude.m4
libstdc++-v3/configure

index 982e979a840b6c42521fe0a851357aee2ad4e447..5136c0571e8cb14fd7fd37ac0301a28f32289cc7 100644 (file)
@@ -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
index a298cbd45a0a2c03b5d1837e55644858001e48fd..68ee94c9e28e4b2f5390cc9b4bd76b0a84f8f7c7 100755 (executable)
        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
This page took 0.104621 seconds and 5 git commands to generate.