From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28237 invoked by alias); 7 Dec 2002 23:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28199 invoked by uid 71); 7 Dec 2002 23:56:00 -0000 Resent-Date: 7 Dec 2002 23:56:00 -0000 Resent-Message-ID: <20021207235600.28198.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, java-prs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, green@redhat.com Received: (qmail 23875 invoked from network); 7 Dec 2002 23:46:39 -0000 Received: from unknown (HELO dhcppc1) (64.172.59.139) by sources.redhat.com with SMTP; 7 Dec 2002 23:46:39 -0000 Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by dhcppc1 (8.12.5/8.12.5) with ESMTP id gB7Nkcs6003175 for ; Sat, 7 Dec 2002 15:46:40 -0800 Received: (from green@localhost) by localhost.localdomain (8.12.5/8.12.5/Submit) id gB7NkbBi003173; Sat, 7 Dec 2002 15:46:37 -0800 Message-Id: <200212072346.gB7NkbBi003173@localhost.localdomain> Date: Sat, 07 Dec 2002 15:56:00 -0000 From: green@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: java/8866: Bug in switch statement code generation -- missing label X-SW-Source: 2002-12/txt/msg00451.txt.bz2 List-Id: >Number: 8866 >Category: java >Synopsis: Bug in switch statement code generation -- missing label >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Sat Dec 07 15:56:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Anthony Green >Release: 3.3 20021207 (experimental) >Organization: >Environment: System: Linux park 2.4.18-18.8.0 #1 Thu Nov 14 00:10:29 EST 2002 i686 i686 i386 GNU/Linux Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /park/green/FSF/GCC/HEAD/gcc/configure --prefix=/park/green/latest/i --enable-languages=c,c++,java --enable-threads >Description: gcj is not emitting some important symbol when generating switch statement code. This is a fairly new regression. With the test code below, you'll see: /tmp/ccGnYxUm.o(.text+0x24): undefined reference to `.L8' >How-To-Repeat: $ gcj SwitchTest.java -O1 --main=SwitchTest public class SwitchTest { public static void main (String args[]) { String attTypeString = ""; switch (args.length) { case 1: attTypeString = "string"; case 4: attTypeString = "ID";; case 5: attTypeString = "IDREF";; case 6: attTypeString = "NMTOKEN";; case 7: attTypeString = "NOTATION";; default: ; } } } >Fix: >Release-Note: >Audit-Trail: >Unformatted: