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:

Looks fine to me :-)

> Index: gcc/fixinc/inclhack.def
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/fixinc/inclhack.def,v
> retrieving revision 1.197
> diff -u -p -r1.197 inclhack.def
> --- gcc/fixinc/inclhack.def     3 May 2004 15:19:16 -0000       1.197
> +++ gcc/fixinc/inclhack.def     10 May 2004 17:40:15 -0000
> @@ -2440,6 +2440,27 @@ fix = {
> 
> 
>  /*
> + *  Solaris 10 <sys/feature_tests.h> unconditionally defines
> + *  _RESTRICT_KYWD as restrict iff _STDC_C99.  This is wrong for C++, which
> + *  needs many C99 features, but only supports __restrict.
> + */
> +fix = {
> +    hackname  = solaris___restrict;
> +    files     = sys/feature_tests.h;
> +    select    = "#define[ \t]+_RESTRICT_KYWD[ \t]+restrict";
> +
> +    mach      = "*-*-solaris2*";
> +    c_fix     = format;
> +    c_fix_arg = "#ifndef __cplusplus\n"
> +               "%0\n"
> +               "#else\n"
> +               "#define _RESTRICT_KYWD __restrict\n"
> +               "#endif";
> +
> +    test_text = "#define       _RESTRICT_KYWD  restrict";
> +};
> +
> +/*


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