This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Clean-up C's builtin function type matching.


On 21 Jul 2003, Gabriel Dos Reis wrote:
> Roger Sayle <roger@eyesopen.com> writes:
>
> | I do believe there's a strong argument for -pedantic for the non-public
> | redeclaration, but perhaps the FreeBSD community might also consider
> | fixing their non-conformant usage of reserved symbols?
>
> Why would
>
>   int main(void) { int sin = 0; return sin; }
>
> be a non-conformant usage of 'sin'?

Please keep up, Gaby :>  I said that warnings for non-public declarations
such as those above should be guarded by -pedentic, but David was
complaining that it was "extern int exp;" that was considered a
real regression by the FreeBSD folks.  He complained about "exp",
not "sin"!

redeclaring public symbols = non-conformant.
redeclaring non-public symbols = pedantic warning.

But perhaps I could have been clearer in my last message.

Roger
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]