From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joern Rennecke To: gavin@cygnus.com (Gavin Romig-Koch) Cc: law@cygnus.com, cgw@alum.mit.edu, egcs@egcs.cygnus.com Subject: Re: [PATCH] Fix for short-enums comparison bug Date: Sun, 28 Feb 1999 22:53:00 -0000 Message-ID: <199902111524.PAA10539@phal.cygnus.co.uk> References: <14018.60839.325601.426391@cetus.cygnus.com> X-SW-Source: 1999-02n/msg00365.html Message-ID: <19990228225300.NdquSB-I3Ss9EBR2i8scMA803lUhDf6_E0ygR2xQzpA@z> > It looks like GCC is choosing unsigned char for this particular enum > with -fshort-enums, which is ok standard-wise. Given this though, > I don't see why this example shouldn't work the same as it does without > -fshort-enums. It's probably a biv elimination problem. Try -fno-strength-reduce.