This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] Fix for short-enums comparison bug


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]