tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: -std=gnu99



> I mean to change bsd.sys.mk to always provide -std=gnu99 in CFLAGS as per
> below patch, as if the code base requires gnu99 then it will require it
> whichever compiler is in use.
> 
> (not to mention, that the conditional is wrong)
> 
> but, what should the comment say?

We want ISO C99 style by default, but we also use GNU dialect?

gcc(1) says:
>> For example, -std=c90 turns off certain
>> features of GCC that are incompatible with ISO C90, such as the
>> "asm" and "typeof" keywords ...

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index