public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/8866: Bug in switch statement code generation -- missing label
@ 2002-12-07 15:56 green
  0 siblings, 0 replies; 2+ messages in thread
From: green @ 2002-12-07 15:56 UTC (permalink / raw)
  To: gcc-gnats


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: java/8866: Bug in switch statement code generation -- missing label
@ 2003-01-07 23:26 Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2003-01-07 23:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR java/8866; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: green@redhat.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/8866: Bug in switch statement code generation -- missing label
Date: 07 Jan 2003 16:25:08 -0700

 >>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
 
 >> Synopsis:       Bug in switch statement code generation -- missing label
 
 Anthony> gcj is not emitting some important symbol when generating
 Anthony> switch statement code.  This is a fairly new regression. With
 Anthony> the test code below, you'll see:
 Anthony> /tmp/ccGnYxUm.o(.text+0x24): undefined reference to `.L8'
 
 Note that if I add this line
 
       System.out.println(attTypeString);
 
 near the end, then it works.
 
 It also works fine with -O0.
 
 Tom


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-07 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-07 15:56 java/8866: Bug in switch statement code generation -- missing label green
2003-01-07 23:26 Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).