Re: Why is gcc going to default to "GNU dialect of ISO C99?"

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

 



"Dr. David Kirkby" <david.kirkby@xxxxxxxxxx> 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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux