This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enum signedness
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: Enum signedness
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 29 Jul 2000 14:50:40 -0300
- Cc: gcc-patches at gcc dot gnu dot org, rth at cygnus dot com, gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20000729171822.C18818@atrey.karlin.mff.cuni.cz>
On Jul 29, 2000, Jan Hubicka <jh@suse.cz> wrote:
> Currently the comparisons agains enums are unsigned.
This bug was fixed with:
2000-07-26 Alexandre Oliva <aoliva@redhat.com>
* c-decl.c (finish_enum): Convert enumerations that fit in an
`int' to `int'.
(build_enumerator): In pedantic mode, cast to `int' those that
don't.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me