This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: cp/search.c broken
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Aldy Hernandez <aldyh at redhat dot com>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 26 Nov 2001 22:42:04 +0000 (GMT)
- Subject: 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