changeset 1300:f8d68d85e72e

2009-01-07 Matthias Klose <doko@ubuntu.com> * patches/hotspot/14.0b08/icedtea-hotspot-dispatch.patch: New, fix build failure with GCC-4.4. * Makefile.am: Apply. * HACKING: Document the above.
author doko@ubuntu.com
date Wed, 07 Jan 2009 12:02:05 +0100
parents fc5078fb4df1
children 2938e5bb0575
files ChangeLog HACKING Makefile.am patches/hotspot/14.0b08/icedtea-hotspot-dispatch.patch
diffstat 4 files changed, 21 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jan 06 17:30:41 2009 -0500
+++ b/ChangeLog	Wed Jan 07 12:02:05 2009 +0100
@@ -1,3 +1,10 @@
+2009-01-07  Matthias Klose  <doko@ubuntu.com>
+
+	* patches/hotspot/14.0b08/icedtea-hotspot-dispatch.patch: New, fix
+	build failure with GCC-4.4.
+	* Makefile.am: Apply.
+	* HACKING: Document the above.
+
 2009-01-06  Omair Majid  <omajid@redhat.com>
 
 	* patches/icedtea-demo-swingapplet.patch: New file.
--- a/HACKING	Tue Jan 06 17:30:41 2009 -0500
+++ b/HACKING	Wed Jan 07 12:02:05 2009 +0100
@@ -80,6 +80,7 @@
 * icedtea-cc-interp-jvmti.patch: Disable some JVMTI capabilities which are unsupported or do not work with the C++ interpreter.
 * icedtea-a11y-property-change.patch: Dont fire PropertyChangeEvent if the property hasnt changed.
 * icedtea-demo-swingapplet.patch: Add missing html file needed to run the demo.
+* icedtea-hotspot-dispatch.patch: Fix build failure with GCC-4.4 (PR 38725).
 
 The following patches are only applied to OpenJDK6 in IcedTea6:
 
--- a/Makefile.am	Tue Jan 06 17:30:41 2009 -0500
+++ b/Makefile.am	Wed Jan 07 12:02:05 2009 +0100
@@ -649,7 +649,8 @@
 ICEDTEA_PATCHES += \
 	patches/icedtea-format-warnings.patch \
 	patches/icedtea-fortify-source.patch \
-	patches/hotspot/$(HSBUILD)/icedtea-sparc-buildfixes.patch
+	patches/hotspot/$(HSBUILD)/icedtea-sparc-buildfixes.patch \
+	patches/hotspot/$(HSBUILD)/icedtea-hotspot-dispatch.patch
 endif
 
 if !WITH_ALT_HSBUILD
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/hotspot/14.0b08/icedtea-hotspot-dispatch.patch	Wed Jan 07 12:02:05 2009 +0100
@@ -0,0 +1,11 @@
+--- openjdk/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp.old	2009-01-06 16:16:57.000000000 -0700
++++ openjdk/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp	2009-01-06 16:17:53.000000000 -0700
+@@ -163,7 +163,7 @@
+ #ifdef USELABELS
+ // Have to do this dispatch this way in C++ because otherwise gcc complains about crossing an
+ // initialization (which is is the initialization of the table pointer...)
+-#define DISPATCH(opcode) goto *dispatch_table[opcode]
++#define DISPATCH(opcode) goto *(void *)dispatch_table[opcode]
+ #define CONTINUE {                              \
+         opcode = *pc;                           \
+         DO_UPDATE_INSTRUCTION_COUNT(opcode);    \