From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14851 invoked by alias); 6 Oct 2002 01: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 14821 invoked by uid 71); 6 Oct 2002 01:56:01 -0000 Resent-Date: 6 Oct 2002 01:56:01 -0000 Resent-Message-ID: <20021006015601.14820.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 10905 invoked from network); 6 Oct 2002 01:52:32 -0000 Received: from unknown (HELO mx2.redhat.com) (12.150.115.133) by sources.redhat.com with SMTP; 6 Oct 2002 01:52:32 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.11.6/8.11.6) with ESMTP id g961qEs05667 for ; Sat, 5 Oct 2002 21:52:14 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g961qVl08609 for ; Sat, 5 Oct 2002 21:52:31 -0400 Received: from louie.sfbay.redhat.com (louie.sfbay.redhat.com [192.168.28.4]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g961qVw11411 for ; Sat, 5 Oct 2002 18:52:31 -0700 Received: (green@localhost) by louie.sfbay.redhat.com (8.11.6/8.6.4) id g961qQA04681; Sat, 5 Oct 2002 18:52:26 -0700 Message-Id: <200210060152.g961qQA04681@louie.sfbay.redhat.com> Date: Sat, 05 Oct 2002 18:56:00 -0000 From: green@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: java/8154: gcj not emitting switch table X-SW-Source: 2002-10/txt/msg00210.txt.bz2 List-Id: >Number: 8154 >Category: java >Synopsis: gcj not emitting switch table >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Sat Oct 05 18:56:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.3 20021005 (experimental) >Organization: >Environment: System: Linux louie 2.4.7-10smp #1 SMP Thu Sep 6 17:09:31 EDT 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /home/green/FSF/GCC/HEAD/gcc/configure --prefix=/louie/green/latest/i --enable-languages=c,c++,java : (reconfigured) >Description: Here's a recent gcj regression.... louie[1180] gcj -o linkbug --main=linkbug linkbug.java -O2 /tmp/cccsuuSt.o: In function `linkbug::main(JArray*)': /tmp/cccsuuSt.o(.text+0x36): undefined reference to `.L10' collect2: ld returned 1 exit status >How-To-Repeat: Try to compile and link the following with optimization turned on. import gnu.java.rmi.server.*; public class linkbug { public static void main (String[] args) { String attTypeString = ""; switch (args.length) { case ProtocolConstants.STREAM_PROTOCOL: attTypeString = "string"; case ProtocolConstants.SINGLE_OP_PROTOCOL: attTypeString = "ENTITY"; case ProtocolConstants.MULTIPLEX_PROTOCOL: attTypeString = "ENUMERATION"; case ProtocolConstants.PROTOCOL_ACK: attTypeString = "ID"; case ProtocolConstants.PROTOCOL_NACK: attTypeString = "IDREF"; case ProtocolConstants.MESSAGE_CALL: attTypeString = "NMTOKEN"; case ProtocolConstants.MESSAGE_CALL_ACK: attTypeString = "NOTATION"; default: ; } System.out.println (attTypeString); return; } } >Fix: >Release-Note: >Audit-Trail: >Unformatted: