This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4/3.5 PATCH: Fix many Solaris 10 g++ testsuite failures
- From: Bruce Korb <bkorb at veritas dot com>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org, Bruce Korb <bkorb at gnu dot org>
- Date: Fri, 30 Apr 2004 12:51:48 -0700
- Subject: Re: 3.4/3.5 PATCH: Fix many Solaris 10 g++ testsuite failures
- Organization: Home
- References: <16530.43406.739093.260696@xayide.TechFak.Uni-Bielefeld.DE>
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