United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6791168 Fix invalid code in bytecodeInterpreter that can cause gcc ICE
JDK-6791168 : Fix invalid code in bytecodeInterpreter that can cause gcc ICE

Details
Type:
Bug
Submit Date:
2009-01-07
Status:
Closed
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2009-02-11
Component:
hotspot
OS:
linux_ubuntu
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs15
Fixed Versions:
hs15 (b01)

Related Reports
Backport:
Backport:

Sub Tasks

Description
From Matthias Klose <###@###.###>:

please see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38593
and
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38725

looks like current GCC versions accept invalid code:

"That's really a duplicate of PR38725: The code contains many lines of the form

  goto *dispatch_table[opcode];

where dispatch_table[opcode] is of the type uintptr_t which is a typedef
to unsigned int. Writing

  goto *(void*)dispatch_table[opcode];

instead makes the ICE disappear."

                                    

Comments
EVALUATION

Fixed some compilation errors in gcc 4.3 also.  See:

http://webrev.invokedynamic.info/coleenp/6791168
                                     
2009-01-12
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/52a431267315
                                     
2009-01-13



Hardware and Software, Engineered to Work Together