public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFC] __extension__ and warnings
@ 2002-12-11 14:16 Neil Booth
  2002-12-11 14:19 ` Gabriel Dos Reis
  2002-12-11 15:17 ` Zack Weinberg
  0 siblings, 2 replies; 7+ messages in thread
From: Neil Booth @ 2002-12-11 14:16 UTC (permalink / raw)
  To: gcc

I've been looking into PR 7263 about __extension__ not turning off
warnings about LL and ULL.

Not surprisingly, our treatment of warn_long_long is quite inconsistent
within front ends, and with cpplib, and with use of __extension__.

Getting things 100% right with __extension__ is hard, and would uglify
the parsers further.  I don't think the pain is worth the gain, and I
don't want to go there.  At present we turn of pedantic, warn_traditional,
warn_pointer_arith and flag_iso in the C front end, and pedantic in the
C++ front end.

I propose a simpler solution: simply do not emit any pedwarns whilst inside
the code affected by __extension__.  This is easy to implement inside
pedwarn() itself.

With this, I can clear up some confused and confusing warning logic, and fix
its interaction with cpplib's number interpreter.  Thoughts?

Neil.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-12-12  7:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-11 14:16 [RFC] __extension__ and warnings Neil Booth
2002-12-11 14:19 ` Gabriel Dos Reis
2002-12-11 22:55   ` Mark Mitchell
2002-12-11 15:17 ` Zack Weinberg
2002-12-11 15:54   ` Neil Booth
2002-12-11 23:54     ` Neil Booth
2002-12-11 23:58       ` Gabriel Dos Reis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).