This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/15069] [3.4/3.5 regression] a bit test on a variable of enum type is miscompiled
- From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2004 22:01:51 -0000
- Subject: [Bug middle-end/15069] [3.4/3.5 regression] a bit test on a variable of enum type is miscompiled
- References: <20040422125216.15069.bruno@clisp.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-05-28 22:01 -------
Roger --
The front end is marking the enumeration type as unsigned.
I think that the problem is that fold is simplifying
(NOP_EXPR long (CONVERT_EXPR int enum_expr))
to:
(NOP_EXPR long enum_expr)
which is incorrect; that CONVERT_EXPR needs to be preserved, given that the enum
type is unsigned.
Would you please look into that?
-- Mark
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |roger at eyesopen dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15069