3.4/3.5 PATCH: Fix many Solaris 10 g++ testsuite failures
Bruce Korb
bkorb@veritas.com
Fri Apr 30 19:51:00 GMT 2004
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
More information about the Libstdc++
mailing list