[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-06-02 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-03 
04:06 ---
Subject: Bug 21722

CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]   2005-06-03 04:05:53

Modified files:
gcc/java   : ChangeLog class.c 

Log message:
PR java/21722:
* class.c (build_static_field_ref): Don't fold constant fields if
current class is from a .class file and we're using indirect
dispatch.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.1556.2.22r2=1.1556.2.23
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?cvsroot=gcconly_with_tag=gcc-4_0-branchr1=1.220.8.2r2=1.220.8.3



-- 


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-06-02 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-03 
04:06 ---
Subject: Bug 21722

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-03 04:06:19

Modified files:
gcc/java   : ChangeLog class.c 

Log message:
PR java/21722:
* class.c (build_static_field_ref): Don't fold constant fields if
current class is from a .class file and we're using indirect
dispatch.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gccr1=1.1621r2=1.1622
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?cvsroot=gccr1=1.230r2=1.231



-- 


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-06-02 Thread tromey at gcc dot gnu dot org

--- Additional Comments From tromey at gcc dot gnu dot org  2005-06-03 
04:12 ---
I've checked in the fix for this.


-- 
   What|Removed |Added

   Target Milestone|--- |4.0.1


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-06-02 Thread tromey at gcc dot gnu dot org

--- Additional Comments From tromey at gcc dot gnu dot org  2005-06-03 
05:34 ---
Forgot to mark as fixed earlier.


-- 
   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-06-01 Thread tromey at gcc dot gnu dot org

--- Additional Comments From tromey at gcc dot gnu dot org  2005-06-01 
20:30 ---
Interestingly, if I compile the two .class files separately
and then link the results, it works.


-- 


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-06-01 Thread matz at suse dot de

--- Additional Comments From matz at suse dot de  2005-06-01 20:59 ---
Yes.  I think this is because the compiler needs to see the definition and the 
use site 
to exhibit this bug.  Without the def it will correctly emit the code walking 
the table 
to get to the member. 

-- 


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-06-01 Thread tromey at gcc dot gnu dot org

--- Additional Comments From tromey at gcc dot gnu dot org  2005-06-01 
21:36 ---
I'm testing a patch.


-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |tromey at gcc dot gnu dot
   |dot org |org
 Status|NEW |ASSIGNED
   Last reconfirmed|2005-05-23 18:03:47 |2005-06-01 21:36:08
   date||


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-05-23 Thread matz at suse dot de

--- Additional Comments From matz at suse dot de  2005-05-23 16:52 ---
Created an attachment (id=8953)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8953action=view)
tarball showing the problem


-- 


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-05-23 Thread skh at suse dot de


-- 
   What|Removed |Added

 CC||skh at suse dot de


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-05-23 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-23 
16:59 ---
Related to PR 1259.

-- 
   What|Removed |Added

  BugsThisDependsOn||1259


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


[Bug java/21722] gcj miscompiles accesses to static final vars with indirect dispatch

2005-05-23 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-23 
18:03 ---
Confirmed, I don't get a seg fault but a NPE (NullPointerException) instead.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-05-23 18:03:47
   date||


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