Still a lot of C++ files getting "fixed"

Zack Weinberg zack@wolery.cumb.org
Thu Jan 27 14:03:00 GMT 2000


On Thu, Jan 27, 2000 at 11:05:10AM +0000, Nathan Sidwell wrote:
> "Kaveh R. Ghazi" wrote:
> > I still think we should always silently accept // comments in system
> > headers no matter what.  Even if -ansi -pedantic.  (Otherwise we can't
> > stop "fixing" these headers.)
> since I've not seen anyone mention it, silently accepting non-standard
> code in header files even with --ansi --pedantic, is existing practice
> for gcc. An example is the varargs macro extension. So I agree that
> we should silently accept // in a system header.

I've done testing, and we seem to have consensus - patch will be
published shortly.

> (Sometimes I wish
> I could say --really-pedantic-everywhere, but that's a different
> question.)

It would be easy enough to add such a thing; the hardest bit is
probably deciding what the option should be named and whether it
should cause __extension__ to be ignored, too.

What might be better is to have a way for the tm files to disable
system-header dispensations altogether.  Then the platforms that have
good header files can use that.  (We've already got a similar thing,
with NO_IMPLICIT_EXTERN_C.)

zw



More information about the Gcc-bugs mailing list