public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10563] libstdc++: Fix test failure on AIX
@ 2022-04-26 13:12 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2022-04-26 13:12 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:c51da9043b4157b43b3e401bdb85b7ec7f7b555a

commit r10-10563-gc51da9043b4157b43b3e401bdb85b7ec7f7b555a
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Mar 3 22:20:32 2022 +0000

    libstdc++: Fix test failure on AIX
    
    This fixes a test failure due to a non-reserved name in an AIX system
    header (included via <pthread.h>). That name clashes with one of the
    names we check our own headers for, so skip checking that name on AIX.
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/17_intro/names.cc (func): Undef on AIX.
    
    (cherry picked from commit 64cdf49962996747b4c5687a705551d5fc61fac8)

Diff:
---
 libstdc++-v3/testsuite/17_intro/names.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libstdc++-v3/testsuite/17_intro/names.cc b/libstdc++-v3/testsuite/17_intro/names.cc
index f60c70ef561..a5642df8666 100644
--- a/libstdc++-v3/testsuite/17_intro/names.cc
+++ b/libstdc++-v3/testsuite/17_intro/names.cc
@@ -197,6 +197,8 @@
 #undef y
 // <sys/var.h> defines vario::v
 #undef v
+// <sys/timer.h> defines trb::func and cputime_tmr::func
+#undef func
 #endif
 
 #ifdef __hpux__


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-26 13:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 13:12 [gcc r10-10563] libstdc++: Fix test failure on AIX Jonathan Wakely

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).