This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [fixincludes] Fix posix_spawn* declarations in Solaris <spawn.h> (PR c++/49347)
Hi Bruce,
>> some-function(char *const argv[_RESTRICT_KYWD], ...)
>
> looks pretty broken to me. How would it work with plain gcc?
no idea, but both gcc -std=c99 and Sun Studio cc -xc99 do accept it.
> Anyway, editing the _RESTRICT_KYWD into the correct place looks
> correct to me, and I'm sure you tested. "Ship it". Methinks
> all active branches, too....
I'll restrict it to mainline and the 4.6 branch since this is the first
one that had the fix for
#define _RESTRICT_KYWD __restrict
in <sys/feature_tests.h>.
Thanks.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University