/hg/release/icedtea6-1.11: Fixed build with GCC 4.7
dbhole at icedtea.classpath.org
dbhole at icedtea.classpath.org
Mon Jan 30 15:32:08 PST 2012
changeset 01cc2ea64fbd in /hg/release/icedtea6-1.11
details: http://icedtea.classpath.org/hg/release/icedtea6-1.11?cmd=changeset;node=01cc2ea64fbd
author: Deepak Bhole <dbhole at redhat.com>
date: Mon Jan 30 18:26:19 2012 -0500
Fixed build with GCC 4.7
diffstat:
ChangeLog | 9 +
Makefile.am | 5 +-
NEWS | 1 +
patches/openjdk/7140882-dont-return-booleans-from-methods-returning-pointers.patch | 11 +
patches/openjdk/remove-mimpure-option-to-gcc.patch | 150 ++++++++++
5 files changed, 175 insertions(+), 1 deletions(-)
diffs (224 lines):
diff -r 308265f39f56 -r 01cc2ea64fbd ChangeLog
--- a/ChangeLog Fri Jan 27 11:09:28 2012 -0500
+++ b/ChangeLog Mon Jan 30 18:26:19 2012 -0500
@@ -1,3 +1,12 @@
+2012-01-30 Deepak Bhole <dbhole at redhat.com>
+
+ Added patches to fix building with GCC 4.7
+ * patches/openjdk/7140882-dont-return-booleans-from-methods-returning-pointers.patch:
+ New patch. Makes methods return NULL instead of boolean when they return a
+ pointer.
+ * patches/openjdk/remove-mimpure-option-to-gcc.patch: New patch. Removes
+ the invalid -mimpure-text option to GCC.
+
2012-01-25 Andrew Haley <aph at redhat.com>
* openjdk-ecj/hotspot/src/cpu/zero/vm/thumb2.cpp (Thumb2_Branch):
diff -r 308265f39f56 -r 01cc2ea64fbd Makefile.am
--- a/Makefile.am Fri Jan 27 11:09:28 2012 -0500
+++ b/Makefile.am Mon Jan 30 18:26:19 2012 -0500
@@ -404,7 +404,10 @@
patches/openjdk/7102369-7094468-rmiregistry.patch \
patches/openjdk/6851973-kerberos.patch \
patches/openjdk/7091528-javadoc_class_files.patch \
- patches/openjdk/7103725-ssl_beast_regression.patch
+ patches/openjdk/7103725-ssl_beast_regression.patch \
+ patches/openjdk/6761072-new_krb5_tests_fail_on_multiple_platforms.patch \
+ patches/openjdk/7140882-dont-return-booleans-from-methods-returning-pointers.patch \
+ patches/openjdk/remove-mimpure-option-to-gcc.patch
if WITH_RHINO
ICEDTEA_PATCHES += \
diff -r 308265f39f56 -r 01cc2ea64fbd NEWS
--- a/NEWS Fri Jan 27 11:09:28 2012 -0500
+++ b/NEWS Mon Jan 30 18:26:19 2012 -0500
@@ -17,6 +17,7 @@
* Allow selection of test suites using the jtreg_checks argument e.g. jtreg_checks="langtools"
* Drop the outdated NIO2 backport. Users who want NIO2 should use IcedTea 2.x.
* Shark has been disabled
+* Fixed build with GCC 4.7
* Bug fixes
- PR637: make check should exit with an error code if any regression test failed.
- PR752: ImageFormatException extends Exception not RuntimeException
diff -r 308265f39f56 -r 01cc2ea64fbd patches/openjdk/7140882-dont-return-booleans-from-methods-returning-pointers.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/openjdk/7140882-dont-return-booleans-from-methods-returning-pointers.patch Mon Jan 30 18:26:19 2012 -0500
@@ -0,0 +1,12 @@
+diff -ur openjdk.orig/hotspot/src/share/vm/opto/loopnode.cpp openjdk/hotspot/src/share/vm/opto/loopnode.cpp
+--- openjdk.orig/hotspot/src/share/vm/opto/loopnode.cpp 2011-11-14 17:07:36.000000000 -0500
++++ openjdk/hotspot/src/share/vm/opto/loopnode.cpp 2012-01-30 11:25:10.648080484 -0500
+@@ -546,7 +546,7 @@
+ Node* CountedLoopNode::match_incr_with_optional_truncation(
+ Node* expr, Node** trunc1, Node** trunc2, const TypeInt** trunc_type) {
+ // Quick cutouts:
+- if (expr == NULL || expr->req() != 3) return false;
++ if (expr == NULL || expr->req() != 3) return NULL;
+
+ Node *t1 = NULL;
+ Node *t2 = NULL;
diff -r 308265f39f56 -r 01cc2ea64fbd patches/openjdk/remove-mimpure-option-to-gcc.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/openjdk/remove-mimpure-option-to-gcc.patch Mon Jan 30 18:26:19 2012 -0500
@@ -0,0 +1,162 @@
+diff -ur openjdk.orig/jdk/make/common/shared/Compiler-gcc.gmk openjdk/jdk/make/common/shared/Compiler-gcc.gmk
+--- openjdk.orig/jdk/make/common/shared/Compiler-gcc.gmk 2011-11-14 17:11:39.000000000 -0500
++++ openjdk/jdk/make/common/shared/Compiler-gcc.gmk 2012-01-30 11:27:47.181487274 -0500
+@@ -94,7 +94,7 @@
+ endif
+ endif
+ # Option used to create a shared library
+- SHARED_LIBRARY_FLAG = -shared -mimpure-text
++ SHARED_LIBRARY_FLAG = -shared
+ SUN_COMP_VER := $(shell $(CC) --verbose 2>&1 )
+
+ endif
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/compiledMethodLoad/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/compiledMethodLoad/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/compiledMethodLoad/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/compiledMethodLoad/sample.makefile.txt 2012-01-30 11:27:47.186487189 -0500
+@@ -90,7 +90,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/gctest/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/gctest/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/gctest/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/gctest/sample.makefile.txt 2012-01-30 11:27:47.187487172 -0500
+@@ -90,7 +90,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/heapTracker/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/heapTracker/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/heapTracker/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/heapTracker/sample.makefile.txt 2012-01-30 11:27:47.186487189 -0500
+@@ -94,7 +94,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/heapViewer/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/heapViewer/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/heapViewer/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/heapViewer/sample.makefile.txt 2012-01-30 11:27:47.184487223 -0500
+@@ -90,7 +90,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/hprof/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/hprof/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/hprof/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/hprof/sample.makefile.txt 2012-01-30 11:27:47.189487139 -0500
+@@ -130,7 +130,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES= -lnsl -ldl -lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/index.html openjdk/jdk/src/share/demo/jvmti/index.html
+--- openjdk.orig/jdk/src/share/demo/jvmti/index.html 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/index.html 2012-01-30 11:27:47.183487240 -0500
+@@ -308,7 +308,7 @@
+ <code><ul>
+ gcc -O2 -fPIC -pthread -DLINUX -c <i>*.c</i>
+ <br>
+-gcc -z defs -static-libgcc -shared -mimpure-text -o <i>libXXX.so *.o</i> -lc
++gcc -z defs -static-libgcc -shared -o <i>libXXX.so *.o</i> -lc
+ </code></ul>
+ <br>
+ For AMD64:
+@@ -316,7 +316,7 @@
+ <code><ul>
+ gcc -O2 -fPIC -pthread -DLINUX -D_LP64=1 -c <i>*.c</i>
+ <br>
+-gcc -z defs -static-libgcc -shared -mimpure-text -o <i>libXXX.so *.o</i> -lc
++gcc -z defs -static-libgcc -shared -o <i>libXXX.so *.o</i> -lc
+ </code></ul>
+ <br>
+ </li>
+@@ -339,7 +339,7 @@
+ </li>
+
+ <li>
+-Library: Use -static-libgcc -mimpure-text.
++Library: Use -static-libgcc.
+ <br>
+ When building the shared library (-shared option), this option
+ allows for maximum portability of the library between different
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/java_crw_demo/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/java_crw_demo/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/java_crw_demo/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/java_crw_demo/sample.makefile.txt 2012-01-30 11:27:47.187487172 -0500
+@@ -90,7 +90,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/minst/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/minst/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/minst/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/minst/sample.makefile.txt 2012-01-30 11:27:47.187487172 -0500
+@@ -94,7 +94,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/mtrace/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/mtrace/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/mtrace/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/mtrace/sample.makefile.txt 2012-01-30 11:27:47.188487155 -0500
+@@ -94,7 +94,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-L $(JDK)/jre/lib/$(LIBARCH) -ljava_crw_demo -lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/versionCheck/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/versionCheck/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/versionCheck/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/versionCheck/sample.makefile.txt 2012-01-30 11:27:47.185487206 -0500
+@@ -90,7 +90,7 @@
+ OBJECTS=$(SOURCES:%.c=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=-lc
+ # Building a shared library
+diff -ur openjdk.orig/jdk/src/share/demo/jvmti/waiters/sample.makefile.txt openjdk/jdk/src/share/demo/jvmti/waiters/sample.makefile.txt
+--- openjdk.orig/jdk/src/share/demo/jvmti/waiters/sample.makefile.txt 2011-11-14 17:12:10.000000000 -0500
++++ openjdk/jdk/src/share/demo/jvmti/waiters/sample.makefile.txt 2012-01-30 11:27:47.188487155 -0500
+@@ -91,7 +91,7 @@
+ OBJECTS=$(SOURCES:%.cpp=%.o)
+ # Library name and options needed to build it
+ LIBRARY=lib$(LIBNAME).so
+- LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
++ LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc
+ # Libraries we are dependent on
+ LIBRARIES=
+ # Building a shared library
More information about the distro-pkg-dev
mailing list