From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20296 invoked by alias); 19 Jul 2004 17:32:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20281 invoked by uid 48); 19 Jul 2004 17:32:12 -0000 Date: Mon, 19 Jul 2004 17:32:00 -0000 Message-ID: <20040719173212.20280.qmail@sourceware.org> From: "roger at eyesopen dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040719172622.16631.roger@eyesopen.com> References: <20040719172622.16631.roger@eyesopen.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/16631] Problems inlining with enums X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg02329.txt.bz2 List-Id: ------- 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