This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: 3.4/3.5 PATCH: Fix many Solaris 10 g++ testsuite failures


Rainer Orth wrote:
> 
> Bootstrapping current mainline on Solaris 10/x86 Beta 2, I noticed many new
> failures in the g++ testsuite, [...]

+fix = {
+    hackname  = solaris___restrict;
+    files     = sys/feature_tests.h;
+    select    = "#define[ \t]+_RESTRICT_KYWD[ \t]+restrict";
+
+    mach      = "*-*-solaris2*";
+    c_fix     = format;

My only marginal concern is that if Sun figures out that it has this
problem, they might fix it.  OTOH, applying this patch to:

> #ifndef __cplusplus
> #define _RESTRICT_KYWD  restrict
> #else
> #define _RESTRICT_KYWD __restrict
> #endif

will only put a redundant guard around the #define, yielding a noop.
So, yeah, do it and we'll cross the next bridge if/when it happens.
Thanks - all active branches, please.  Regards, Bruce


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