This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Why is gcc going to default to "GNU dialect of ISO C99?"
"Dr. David Kirkby" <david.kirkby@onetel.net> writes:
> A lot of bugs are often discovered in code by testing on multiple
> compilers and multiple platforms. What one compiler misses, another
> finds. I could point you to various cases where the Sun compiler has
> rejected erroneous code that gcc has permitted. I'm sure you could no
> doubt find counter examples too.
>
> By generating code that should build with other compilers, problems
> can be detected more easily.
You are looking for the -pedantic option, q.v.
It is extremely unlikely that this decision about gcc's default
behaviour will be changed.
Ian