This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[libstdc++] Fix 17_intro/names.cc on SPARC/Linux


The SPARC-V8 architecture contains a Y register so <bits/sigcontext.h> defines 
a structure with a 'y' field on Linux.

Tested on SPARC64/Linux, applied on the mainline and 7 branch as obvious.


2018-01-16  Eric Botcazou  <ebotcazou@adacore.com>

	* testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux.

-- 
Eric Botcazou
Index: testsuite/17_intro/names.cc
===================================================================
--- testsuite/17_intro/names.cc	(revision 256562)
+++ testsuite/17_intro/names.cc	(working copy)
@@ -112,4 +112,8 @@
 #undef r
 #endif
 
+#if defined (__linux__) && defined (__sparc__)
+#undef y
+#endif
+
 #include <bits/stdc++.h>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]