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: cp/search.c broken


On Mon, 26 Nov 2001, Richard Henderson wrote:

> This one, however, I think is a bit more dangerous.  It's too
> easy to accidentally write code that no longer compiles with
> older compilers.

You can always use -pedantic (and, if we do want the C++ front end to
follow the same portability requirements as the C front end to make moving
code between them easier, perhaps it should be using the same warning
options).  At present the C front end does but the C++ one doesn't.  
Before C99 mode becomes the default, as well as having a full C99
implementation we should also have a -Wc89 option to warn about the
various cases currently warned about if pedantic && !flag_isoc99.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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