This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java 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]

java/4509: gcj -C can generate dead bytecode



>Number:         4509
>Category:       java
>Synopsis:       gcj -C can generate dead bytecode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 08 19:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey <tromey@redhat.com>
>Release:        current cvs trunk
>Organization:
>Environment:

>Description:
gcj -C will generate dead bytecode from this source:

public class err8 {
  public static void main(String[] args) {
    do {
      break;
    } while (true) ;

  }
}

The generated code looks like this:

  0: goto 6
  3: goto 0
  6: return

This isn't very important, so I've marked it non-critical.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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