public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/111238] libstdc++ tests should use -Wl,-gc-sections in more configurations
Date: Mon, 04 Sep 2023 20:44:59 +0000	[thread overview]
Message-ID: <bug-111238-4-qW4e7U5Nev@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-111238-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111238

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Christophe Lyon <clyon@gcc.gnu.org>:

https://gcc.gnu.org/g:56d0592db19b69e3cc217fabe5c2f8be3a75a8cf

commit r14-3660-g56d0592db19b69e3cc217fabe5c2f8be3a75a8cf
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date:   Thu Aug 31 13:50:16 2023 +0000

    libstdc++: Use GLIBCXX_CHECK_LINKER_FEATURES for cross-builds (PR111238)

    As discussed in PR104167 (comments #8 and below), and PR111238, using
    -Wl,-gc-sections in the libstdc++ testsuite for arm-eabi
    (cross-toolchain) avoids link failures for a few tests:

    27_io/filesystem/path/108636.cc
    std/time/clock/gps/1.cc
    std/time/clock/gps/io.cc
    std/time/clock/tai/1.cc
    std/time/clock/tai/io.cc
    std/time/clock/utc/1.cc
    std/time/clock/utc/io.cc
    std/time/clock/utc/leap_second_info.cc
    std/time/exceptions.cc
    std/time/format.cc
    std/time/time_zone/get_info_local.cc
    std/time/time_zone/get_info_sys.cc
    std/time/tzdb/1.cc
    std/time/tzdb/leap_seconds.cc
    std/time/tzdb_list/1.cc
    std/time/zoned_time/1.cc
    std/time/zoned_time/custom.cc
    std/time/zoned_time/io.cc
    std/time/zoned_traits.cc

    This patch achieves this by calling GLIBCXX_CHECK_LINKER_FEATURES in
    cross-build cases, like we already do for native builds. We keep not
    doing so in Canadian-cross builds.

    However, this would hide the fact that libstdc++ somehow forces the
    user to use -Wl,-gc-sections to avoid undefined references to chdir,
    mkdir, chmod, pathconf, ... so maybe it's better to keep the status
    quo and not apply this patch?

    2023-08-31  Christophe Lyon  <christophe.lyon@linaro.org>

    libstdc++-v3/ChangeLog:

            PR libstdc++/111238
            * configure: Regenerate.
            * configure.ac: Call GLIBCXX_CHECK_LINKER_FEATURES in cross,
            non-Canadian builds.

  parent reply	other threads:[~2023-09-04 20:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 13:54 [Bug libstdc++/111238] New: " clyon at gcc dot gnu.org
2023-08-30 14:38 ` [Bug libstdc++/111238] " redi at gcc dot gnu.org
2023-09-04 20:44 ` cvs-commit at gcc dot gnu.org [this message]
2023-09-04 20:50 ` clyon at gcc dot gnu.org
2023-09-06  8:37 ` clyon at gcc dot gnu.org

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=bug-111238-4-qW4e7U5Nev@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).