This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix for short-enums comparison bug
- To: gavin at cygnus dot com (Gavin Romig-Koch)
- Subject: Re: [PATCH] Fix for short-enums comparison bug
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Thu, 11 Feb 1999 15:24:24 +0000 (GMT)
- Cc: law at cygnus dot com, cgw at alum dot mit dot edu, egcs at egcs dot cygnus dot com
> 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.