Hi,

* Scott Tringali wrote (2008-01-05 18:20):
>Thorsten Haude wrote:
>>I just tried, NEdit breaks hard on GCC's -std=iso9899:1990.
>
>I forget the right way of doing this.  I never worry because I always 
>compile with non-gcc compilers and that finds non-gcc'isms the fastest!
>
>I think that switch you used imples -ansi which removes GNU extensions 
>(good) but also all non-ANSI C functions (bad).

Yep, it's ISO C90, same as -ansi.


>One would think there would be a way to tell gcc "I want everything by 
>default, except GNU C extensions, because I intend to compile with 
>another compiler".  (Of course they don't make this easy!)

There is not even a -posix in the manpage.


>You want to disable GCC's extensions but not other standards such as 
>POSIX, XPG, etc.  I'm not sure if there's an easy way of doing it.  It's 
>probably something like -ansi -D_POSIX_SOURCE=1 (among other things).
>
>I have this somewhere, I'll have to dig it out next week.

Thanks, if you have the time. I think I can live well with my current
-Wall -pedantic; it's just a curiosity really.


Thorsten
-- 
Golly, I'd hate to have a kid like me!
    - Calvin

Attachment: pgpB2nQRsPkgP.pgp
Description: PGP signature

-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to