This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFC: Fix enum comparisons
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Wed, 3 Sep 2008 23:26:24 +0000 (UTC)
- Subject: Re: PATCH RFC: Fix enum comparisons
- References: <m3r680vp2x.fsf@google.com>
On Wed, 3 Sep 2008, Ian Lance Taylor wrote:
> The first attachment below is the -Wenum-compare support. I don't
> propose to apply that patch now, but I would be interested in any
> comments from the C frontend maintainers. I have not yet updated the
> documentation; basically, -Wenum-compare is the default in C++, and in
> C it is enabled by -Wall or -Wc++-compat.
The C patch seems fine (for stage 1) to me.
--
Joseph S. Myers
joseph@codesourcery.com