From: Jonathan Wakely <jwakely@redhat.com>
To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: [committed] libstdc++: Do not embed tzdata.zi for 8-bit and 16-bit targets
Date: Wed, 1 Feb 2023 21:07:55 +0000 [thread overview]
Message-ID: <20230201210755.2445205-1-jwakely@redhat.com> (raw)
The embedded tzdata.zi causes new build failures for small targets.
Tested x86_64-linux, built on avr and msp430-elf.
-- >8 --
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 | 8 ++++++--
libstdc++-v3/configure | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index 982e979a840..5136c0571e8 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 a298cbd45a0..68ee94c9e28 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
--
2.39.1
reply other threads:[~2023-02-01 21:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230201210755.2445205-1-jwakely@redhat.com \
--to=jwakely@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=libstdc++@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).