This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/16631] Problems inlining with enums
- From: "roger at eyesopen dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2004 17:32:12 -0000
- Subject: [Bug middle-end/16631] Problems inlining with enums
- References: <20040719172622.16631.roger@eyesopen.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From roger at eyesopen dot com 2004-07-19 17:32 -------
Created an attachment (id=6782)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6782&action=view)
Failing test case
Doh! I hit the wrong key.
There appears to be a problem with function inlining corrupting the range of
C's enumerated types. This currently causes a bootstrap failure on Tru64
alphaev67-dec-osf5.1. The attached testcase is reduced from GCC's mips-tdump.c
that demonstrates the problem on other platforms, including i686-pc-linux-gnu.
When compiled -O3, we currently generate the error messages:
foo3.i: In function `print_symbol':
foo3.i:413: warning: case label value 32 exceeds maximum value for type
foo3.i:450: warning: case label value 64 exceeds maximum value for type
This problem does not occur compiling the same file at -O2. The original
from which this testcase is derived declared print_symbol and sc_to_string
as static which triggered the problem at -O2.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16631