java/1467: compiling various libgcj .java files with -O2 fails

bryce@albatross.co.nz bryce@albatross.co.nz
Wed Dec 20 12:28:00 GMT 2000


>Number:         1467
>Category:       java
>Synopsis:       compiling various libgcj .java files with -O2 fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    green
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:20:21 PST 2000
>Closed-Date:    Sun Aug 13 18:52:07 PDT 2000
>Last-Modified:  Sun Aug 13 19:00:01 PDT 2000
>Originator:     Bryce McKinlay <bryce@albatross.co.nz>
>Release:        gcc version 2.96 19991104 (experimental)
>Organization:
>Environment:
linux/i386
>Description:
Several classes from libgcj fail to compile from source if
-O is used. Symptoms include Internal compiler errors and
jc1 segfaults.

Source files that fail to compile on 19991104 include:
java/text/MessageFormat.java
java/text/RuleBasedCollator.java
java/text/DecimalFormat.java
java/text/DecimalFormatSymbols.java
java/util/ResourceBundle.java
java/util/Vector.java
>How-To-Repeat:

>Fix:
Use a newer compiler :-)
>Release-Note:

>Audit-Trail:

Formerly PR gcj/86


From: Anthony Green <green@cygnus.com>
To: java-gnats@sourceware.cygnus.com, apbianco@cygnus.com,
        bryce@albatross.co.nz
Cc:  
Subject: Re: gcj/86
Date: Sun, 23 Apr 2000 09:58:14 -0700

 I find that it works very nicely at -O2 now, especially with the
 following patch - which I believe is required when you compile with
 -pg.
 
 Index: gcc/java/check-init.c
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/java/check-init.c,v
 retrieving revision 1.21
 diff -c -r1.21 check-init.c
 *** check-init.c 2000/03/14 20:54:55 1.21
 --- check-init.c 2000/04/23 16:55:10
 ***************
 *** 611,616 ****
 --- 611,617 ----
       case BIT_NOT_EXPR:
       case CONVERT_EXPR:
       case COMPONENT_REF:
 +     case BIT_FIELD_REF:
       case NOP_EXPR:
       case FLOAT_EXPR:
       case FIX_TRUNC_EXPR:
 
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&pr=86&database=java
 
 -- 
 Anthony Green                                                        Red Hat
                                                        Sunnyvale, California

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/86
Date: Sun, 23 Apr 2000 10:29:17 -0700 (PDT)

 Anthony Green writes:
 
 > I find that it works very nicely at -O2 now, especially with the
 > following patch - which I believe is required when you compile with
 > -pg.
 
 This one is fine. A `FIELD_DECL' wouldn't have been right (I'm
 referring to our private conversation on the subject.)
 
 ./A

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/86
Date: Sun, 23 Apr 2000 18:30:25 -0700 (PDT)

 Anthony Green writes:
 
 > Should I just check this in?
 
 Yes, thanks.
 
 ./A

From: Anthony Green <green@cygnus.com>
To: "'java-gnats@sourceware.cygnus.com'"
	 <java-gnats@sourceware.cygnus.com>,
        "'apbianco@cygnus.com'"
	 <apbianco@cygnus.com>,
        "'bryce@albatross.co.nz'"
	 <bryce@albatross.co.nz>
Cc:  
Subject: re: gcj/86
Date: Sun, 13 Aug 2000 09:48:33 -0700

 Bryce - I've been building everything with -O2 for quite some time now.  Can 
 we close this case?
 
 Thanks!
 
 AG
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%26pr=86%26database=  
 java

From: Bryce McKinlay <bryce@albatross.co.nz>
To: "green@cygnus.com" <green@cygnus.com>
Cc: "'java-gnats@sourceware.cygnus.com'" <java-gnats@sourceware.cygnus.com>
Subject: Re: gcj/86
Date: Mon, 14 Aug 2000 12:03:07 +1200

 > Bryce - I've been building everything with -O2 for quite some time now.  Can
 > we close this case?
 
 Yes, I think so. It is not yet safe to build libgcj's java files with -O
 however, because gcj miscompiles some code when optimization is used (see PR
 161)
 
 regards
 
   [ bryce ]
 
 
Responsible-Changed-From-To: apbianco->green
Responsible-Changed-By: green
Responsible-Changed-When: Sun Aug 13 18:52:07 2000
Responsible-Changed-Why:
    I dealt with it.
State-Changed-From-To: open->closed
State-Changed-By: green
State-Changed-When: Sun Aug 13 18:52:07 2000
State-Changed-Why:
    Bryce agrees that libgcj can build with -O.  There's still a miscompilation problem, but that's in PR161.

From: green@cygnus.com
To: apbianco@cygnus.com, bryce@albatross.co.nz, green@cygnus.com,
  java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/86
Date: 14 Aug 2000 01:52:07 -0000

 Synopsis: compiling various libgcj .java files with -O2 fails
 
 Responsible-Changed-From-To: apbianco->green
 Responsible-Changed-By: green
 Responsible-Changed-When: Sun Aug 13 18:52:07 2000
 Responsible-Changed-Why:
     I dealt with it.
 State-Changed-From-To: open->closed
 State-Changed-By: green
 State-Changed-When: Sun Aug 13 18:52:07 2000
 State-Changed-Why:
     Bryce agrees that libgcj can build with -O.  There's still a miscompilation problem, but that's in PR161.
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=86&database=java
>Unformatted:




More information about the Gcc-prs mailing list