This is the mail archive of the gcc-help@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: restrict vs. __restrict__ (gcc 4.8)


On 17 July 2017 at 16:09, Ian Pilcher wrote:
> On 07/17/2017 09:23 AM, Jonathan Wakely wrote:
>>
>> Can't you use -std=gnu99 then?
>
>
> Works like a charm.  Thanks!

The default for gcc 4.8 is -std=gnu89 which is why you can use GNU
extensions like typeof.

If you want C99 with GNU extensions then use -std=gnu99, because
-std=c99 changes two things: it makes the base standard C99 but it
also disables GNU extensions.

(Alternatively use __typeof__ for the extension).


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