Bug 125613 - ant+ecj+gcj34-compiled ecj cannot compile self
Summary: ant+ecj+gcj34-compiled ecj cannot compile self
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: ecj
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gary Benson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-06-09 12:33 UTC by Gary Benson
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-09-08 11:04:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Workaround (1.21 KB, patch)
2004-06-09 12:34 UTC, Gary Benson
no flags Details | Diff

Description Gary Benson 2004-06-09 12:33:19 UTC
Description of problem:
If you compile ecj using ant with (Naoko) ecj and compile the
resulting jar to an executable using gcj34 then the resulting
executable cannot compile itself.  Something (either ecj or gcj34)
seems to be optimising away part of a loop.  The attached patch
prevents the over-zealous optimisation.

Version-Release number of selected component (if applicable):
ecj-2.1.3-1
gcc34-java-3.4.0-1

Comment 1 Gary Benson 2004-06-09 12:34:11 UTC
Created attachment 100989 [details]
Workaround

Comment 2 Gary Benson 2004-06-09 12:39:04 UTC
I tried to make a small test class that would exhibit this failure but
I couldn't.  If I slice out the piece of code in question then it
compiles perfectly, whistling innocently all the way :-/

Comment 3 Gary Benson 2004-06-09 12:41:15 UTC
Oh, and I don't have an i386 FC2 box so I've only seen this issue on
x86_64.

Comment 4 Gary Benson 2004-09-08 11:04:52 UTC
Not an issue with the JPackage-based packageset.


Note You need to log in before you can comment on or make changes to this bug.