public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/28663]  New: [4.2 regression] gcj fails to binary-compile eclipse's javac
@ 2006-08-09 14:37 bero at arklinux dot org
  2006-08-09 18:03 ` [Bug java/28663] " pinskia at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: bero at arklinux dot org @ 2006-08-09 14:37 UTC (permalink / raw)
  To: java-prs

gcj -O2 -fomit-frame-pointer -fweb -frename-registers -fPIC -fjni -shared
-Wl,-O2,--as-needed,--enable-new-dtags,-soname,libecj.so.3 -o libecj.so.3
ecj.jar
org/eclipse/jdt/internal/compiler/lookup/Scope.java: In class
'org.eclipse.jdt.internal.compiler.lookup.Scope':
org/eclipse/jdt/internal/compiler/lookup/Scope.java: In method
'org.eclipse.jdt.internal.compiler.lookup.Scope.getType(char[])':
org/eclipse/jdt/internal/compiler/lookup/Scope.java:2256: error: verification
failed at PC=18: incompatible return type
org/eclipse/jdt/internal/compiler/lookup/Scope.java: In method
'org.eclipse.jdt.internal.compiler.lookup.Scope.getType(char[][],int)':
org/eclipse/jdt/internal/compiler/lookup/Scope.java:2296: error: verification
failed at PC=77: incompatible return type
org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java: In class
'org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference':
org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java: In method
'org.eclipse.jdt.internal.compiler.ast.QualifiedTypeReference.getTypeBinding(org.eclipse.jdt.internal.compiler.lookup.Scope)':
org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java:59: error:
verification failed at PC=34: incompatible return type


Works as expected in 4.1.1.


-- 
           Summary: [4.2 regression] gcj fails to binary-compile eclipse's
                    javac
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org
 GCC build triplet: i586-pc-linux-gnu
  GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
@ 2006-08-09 18:03 ` pinskia at gcc dot gnu dot org
  2006-08-15 23:02 ` bero at arklinux dot org
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-09 18:03 UTC (permalink / raw)
  To: java-prs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
  2006-08-09 18:03 ` [Bug java/28663] " pinskia at gcc dot gnu dot org
@ 2006-08-15 23:02 ` bero at arklinux dot org
  2006-08-16  0:01 ` bero at arklinux dot org
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bero at arklinux dot org @ 2006-08-15 23:02 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from bero at arklinux dot org  2006-08-15 23:02 -------
Some debugging shows this is related to the new jar -- if I use jar from gcc
4.1.x (or just fastjar 0.93 from www.sourceforge.net/projects/fastjar) to
generate the ecj.jar file, I can binary-compile it with gcj 4.2 just fine (I
also used gcj 4.2 to turn the .java files into .class files in both cases).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
  2006-08-09 18:03 ` [Bug java/28663] " pinskia at gcc dot gnu dot org
  2006-08-15 23:02 ` bero at arklinux dot org
@ 2006-08-16  0:01 ` bero at arklinux dot org
  2006-08-17 14:45 ` bero at arklinux dot org
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bero at arklinux dot org @ 2006-08-16  0:01 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from bero at arklinux dot org  2006-08-16 00:01 -------
Forget about the last comment - there was a typo in my "try old gcc version"
script that caused reverting to the old jar to revert to the old gcj for
.java->.class compilation too (but not for .jar->.so).

On a further look after noticing and fixing the typo, gcj's .java->.class
compiler is at fault.

gcj -C 4.1.1 + jar 4.1.1 + gcj 4.2.0 = ok
gcj -C 4.1.1 + jar 4.2.0 + gcj 4.2.0 = ok
gcj -C 4.2.0 + jar 4.2.0 + gcj 4.2.0 = broken
jikes + jar 4.2.0 + gcj 4.2.0 = ok


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (2 preceding siblings ...)
  2006-08-16  0:01 ` bero at arklinux dot org
@ 2006-08-17 14:45 ` bero at arklinux dot org
  2006-08-20 22:33 ` mmitchel at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bero at arklinux dot org @ 2006-08-17 14:45 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from bero at arklinux dot org  2006-08-17 14:45 -------
gcj -C miscompiles just org/eclipse/jdt/internal/compiler/lookup/Scope.java and
org/eclipse/jdt/internal/compiler/ast/QualifiedTypeReference.java -- I can
generate a perfectly working ecj using gcj -C for all files, then rebuilding
the .class files for those 2 files with jikes, then using gcj on the results.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (3 preceding siblings ...)
  2006-08-17 14:45 ` bero at arklinux dot org
@ 2006-08-20 22:33 ` mmitchel at gcc dot gnu dot org
  2006-08-26 17:35 ` aph at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-08-20 22:33 UTC (permalink / raw)
  To: java-prs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (4 preceding siblings ...)
  2006-08-20 22:33 ` mmitchel at gcc dot gnu dot org
@ 2006-08-26 17:35 ` aph at gcc dot gnu dot org
  2006-08-26 17:37 ` aph at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-26 17:35 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from aph at gcc dot gnu dot org  2006-08-26 17:35 -------
I need a test case.  Please attach the .class of .jar to this PR.


-- 

aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aph at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-08-26 17:35:52
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (5 preceding siblings ...)
  2006-08-26 17:35 ` aph at gcc dot gnu dot org
@ 2006-08-26 17:37 ` aph at gcc dot gnu dot org
  2006-08-27 12:31 ` h dot mth at web dot de
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-26 17:37 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from aph at gcc dot gnu dot org  2006-08-26 17:37 -------
If you can generate this failure with just the class files, please supply those
instead of the whole jar.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (6 preceding siblings ...)
  2006-08-26 17:37 ` aph at gcc dot gnu dot org
@ 2006-08-27 12:31 ` h dot mth at web dot de
  2006-08-28 16:53 ` aph at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: h dot mth at web dot de @ 2006-08-27 12:31 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from h dot mth at web dot de  2006-08-27 12:31 -------
After some testing I can say that this is caused by the fix to bug 27529.


-- 

h dot mth at web dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |h dot mth at web dot de


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (7 preceding siblings ...)
  2006-08-27 12:31 ` h dot mth at web dot de
@ 2006-08-28 16:53 ` aph at gcc dot gnu dot org
  2006-08-28 21:45 ` h dot mth at web dot de
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-28 16:53 UTC (permalink / raw)
  To: java-prs



-- 

aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (8 preceding siblings ...)
  2006-08-28 16:53 ` aph at gcc dot gnu dot org
@ 2006-08-28 21:45 ` h dot mth at web dot de
  2006-08-29 10:08 ` aph at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: h dot mth at web dot de @ 2006-08-28 21:45 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from h dot mth at web dot de  2006-08-28 21:45 -------
I stored my broken ecj-3.2.jar here:
http://geki.ath.cx/hacks/ecj.jar


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (9 preceding siblings ...)
  2006-08-28 21:45 ` h dot mth at web dot de
@ 2006-08-29 10:08 ` aph at gcc dot gnu dot org
  2006-08-29 10:37 ` aph at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-29 10:08 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from aph at gcc dot gnu dot org  2006-08-29 10:08 -------
OK, I'm working on this.  It looks like a regression from 4.1.1 -> 4.1.2.


-- 

aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
   Last reconfirmed|2006-08-26 17:35:52         |2006-08-29 10:08:28
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (10 preceding siblings ...)
  2006-08-29 10:08 ` aph at gcc dot gnu dot org
@ 2006-08-29 10:37 ` aph at gcc dot gnu dot org
  2006-08-29 14:05 ` aph at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-29 10:37 UTC (permalink / raw)
  To: java-prs



------- Comment #9 from aph at gcc dot gnu dot org  2006-08-29 10:37 -------
OK, here it is:

old:

 14: invokevirtual <Method
org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage
(char[],int)org.eclipse.jdt.internal.compiler.lookup.Binding>
 17: checkcast <Class
org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding>
 20: areturn

new:

 14: invokevirtual <Method
org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage
(char[],int)org.eclipse.jdt.internal.compiler.lookup.Binding>
 17: areturn


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (11 preceding siblings ...)
  2006-08-29 10:37 ` aph at gcc dot gnu dot org
@ 2006-08-29 14:05 ` aph at gcc dot gnu dot org
  2006-08-29 15:06 ` aph at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-29 14:05 UTC (permalink / raw)
  To: java-prs



------- Comment #10 from aph at gcc dot gnu dot org  2006-08-29 14:05 -------
class Psupersuper
{
}

class Psuper extends Psupersuper
{
}

class P extends Psuper
{
  Psupersuper barf()
  {
    return new P();
  }
}


class PR28663
{
  static Psuper arse ()
  {
    return (P)new P().barf();
  }
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (12 preceding siblings ...)
  2006-08-29 14:05 ` aph at gcc dot gnu dot org
@ 2006-08-29 15:06 ` aph at gcc dot gnu dot org
  2006-08-29 17:27 ` tromey at gcc dot gnu dot org
  2007-01-09 20:54 ` [Bug java/28663] [4.2/4.3 " tromey at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: aph at gcc dot gnu dot org @ 2006-08-29 15:06 UTC (permalink / raw)
  To: java-prs



------- Comment #11 from aph at gcc dot gnu dot org  2006-08-29 15:06 -------
Patch at http://gcc.gnu.org/ml/gcc-patches/2006-08/msg01085.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (13 preceding siblings ...)
  2006-08-29 15:06 ` aph at gcc dot gnu dot org
@ 2006-08-29 17:27 ` tromey at gcc dot gnu dot org
  2007-01-09 20:54 ` [Bug java/28663] [4.2/4.3 " tromey at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-08-29 17:27 UTC (permalink / raw)
  To: java-prs



------- Comment #12 from tromey at gcc dot gnu dot org  2006-08-29 17:27 -------
PR 28067 blocks this -- when merging the gcj-eclipse branch to trunk,
we should remove the workaround patch.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |28067


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

* [Bug java/28663] [4.2/4.3 regression] gcj fails to binary-compile eclipse's javac
  2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
                   ` (14 preceding siblings ...)
  2006-08-29 17:27 ` tromey at gcc dot gnu dot org
@ 2007-01-09 20:54 ` tromey at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:54 UTC (permalink / raw)
  To: java-prs



------- Comment #13 from tromey at gcc dot gnu dot org  2007-01-09 20:48 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.2.0                       |4.3.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663


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

end of thread, other threads:[~2007-01-09 20:54 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-09 14:37 [Bug java/28663] New: [4.2 regression] gcj fails to binary-compile eclipse's javac bero at arklinux dot org
2006-08-09 18:03 ` [Bug java/28663] " pinskia at gcc dot gnu dot org
2006-08-15 23:02 ` bero at arklinux dot org
2006-08-16  0:01 ` bero at arklinux dot org
2006-08-17 14:45 ` bero at arklinux dot org
2006-08-20 22:33 ` mmitchel at gcc dot gnu dot org
2006-08-26 17:35 ` aph at gcc dot gnu dot org
2006-08-26 17:37 ` aph at gcc dot gnu dot org
2006-08-27 12:31 ` h dot mth at web dot de
2006-08-28 16:53 ` aph at gcc dot gnu dot org
2006-08-28 21:45 ` h dot mth at web dot de
2006-08-29 10:08 ` aph at gcc dot gnu dot org
2006-08-29 10:37 ` aph at gcc dot gnu dot org
2006-08-29 14:05 ` aph at gcc dot gnu dot org
2006-08-29 15:06 ` aph at gcc dot gnu dot org
2006-08-29 17:27 ` tromey at gcc dot gnu dot org
2007-01-09 20:54 ` [Bug java/28663] [4.2/4.3 " tromey at gcc dot gnu dot org

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).