This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug middle-end/16631] Problems inlining with enums


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


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