]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Don't test for __unused on Glibc targets
authorXi Ruoyao <xry111@xry111.site>
Thu, 12 Feb 2026 18:46:05 +0000 (18:46 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 12 Feb 2026 19:36:28 +0000 (19:36 +0000)
commit1a0b276f69f535244cf8d0983db2ebbc537de536
tree203ae60768969efe000f6f37c8732a3cf07c376b
parentdb072f75e5ade3b9f1f2ff76fcdfda0d3bf028d1
libstdc++: Don't test for __unused on Glibc targets

x86_64 glibc has started to use it since the 2.43 release, but is
expected to fix it before the 2.44 release.

Link: https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b9579342c68b#patch67
libstdc++-v3/ChangeLog:

* testsuite/17_intro/badnames.cc (__unused): Do not define.
* testsuite/17_intro/names.cc [glibc == 2.43] (__unused): Undef.

Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/testsuite/17_intro/badnames.cc
libstdc++-v3/testsuite/17_intro/names.cc