From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 97F783858D37; Wed, 1 Feb 2023 21:06:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97F783858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675285614; bh=7sSiN75YVzifAFX/+AQZ7dtXd/4c+MpP4kXR8fQpA/U=; h=From:To:Subject:Date:From; b=gIWavYUDYR7tMfl9o+Qn40631N9TzXVYpUNoI2L+ud8yY57+A6addVWo7xLnGYrgl nibFbPIxyu/tgIuVJpgfsozrPG0B/G7X8ua3xsN81vg1m0iraajhfVNYBkWq3kIVUm 8b+L3ou9ucotf9gvXKUD/dyz/tu58Zy0F+SOwPb0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-5637] libstdc++: Do not embed tzdata.zi for 8-bit and 16-bit targets X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 88a2a09dd4529107e7ef7a6e7ce43acf96457173 X-Git-Newrev: 7314558c938245e5963494629e6436e0dccf1c8b Message-Id: <20230201210654.97F783858D37@sourceware.org> Date: Wed, 1 Feb 2023 21:06:54 +0000 (GMT) List-Id: https://gcc.gnu.org/g:7314558c938245e5963494629e6436e0dccf1c8b commit r13-5637-g7314558c938245e5963494629e6436e0dccf1c8b Author: Jonathan Wakely Date: Tue Jan 31 22:11:49 2023 +0000 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. Diff: --- 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