This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: formats and syslog question
Fergus Henderson <fjh@cs.mu.oz.au> writes:
| On 14-Sep-2002, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
| > Fergus Henderson <fjh@cs.mu.OZ.AU> writes:
| > | Same is true for C++, where -pedantic-errors is the default,
| >
| > I don't think that is true.
|
| The GCC 3.2 documentation for -fpermissive says that it is:
|
| | `-fpermissive'
| | Downgrade messages about nonconformant code from errors to
| | warnings. By default, G++ effectively sets `-pedantic-errors'
| | without `-pedantic'; this option reverses that. This behavior and
| | this option are superseded by `-pedantic', which works as it does
| | for GNU C.
This doesn't make sense. What -pedantic-errors does is to turn
warnings generated by -pedantic into errors.
@item -pedantic-errors
@opindex pedantic-errors
Like @option{-pedantic}, except that errors are produced rather than
warnings.
Therefore, if -pedantic-errors is set then -pedantic is set except that
what should be warnings are reported as errors.
So, the documention of -fpermissive is incorrect and inconsistent with
the rest of the documentation.
| So if it's not, then the behaviour doesn't match the documentation,
| and IMHO the best way to fix it would be to change the behaviour
| so that -pedantic-errors really is the default.
In this case, it is the documentation of -fpermissive that doesn't
match behaviour. I'm not sure the best way to fix it is that you're
proposing. What you're proposing doesn't reflect the current
behaviour.
-- Gaby