changeset 7897:1ad3247faaeb

RH1015432: java-1.7.0-openjdk: Fails on PPC with StackOverflowError (revised comprehensive fix) Contributed-by: chphilli@redhat.com Summary: Reverse effects of fix for Oracle bug 8013398 on Zero jvm [related fix]. Workaround for gcc bug [ http://gcc.gnu.org/PR63341 Add -fno-tree-vectorize to ppc build.] found by Andrew Haley aph@redhat.com jdk/make/common/Defs-linux.gmk
author andrew
date Wed, 01 Oct 2014 14:55:14 +0100
parents af556f9f1f01
children 1ceeb31e72ca
files make/common/Defs-linux.gmk
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/Defs-linux.gmk	Wed Oct 01 14:52:34 2014 +0100
+++ b/make/common/Defs-linux.gmk	Wed Oct 01 14:55:14 2014 +0100
@@ -222,7 +222,27 @@
     CFLAGS_REQUIRED     += -D_LITTLE_ENDIAN
   endif
   LDFLAGS_COMMON        += $(ZERO_ARCHFLAG)
+  ifeq ($(ZERO_ARCHDEF),PPC) 
+# gcc bug http://gcc.gnu.org/PR63341 in ppc code generation requires -fno-tree-vectorize for now
+    ifeq ($(ARCH_DATA_MODEL), 32)
+      CFLAGS_REQUIRED   += -DPPC -DPPC32 -fno-tree-vectorize
+    else
+      CFLAGS_REQUIRED   += -DPPC -DPPC64 -fno-tree-vectorize
+    endif
+  else
+    ifeq ($(ZERO_ARCHDEF),PPC32)
+      CFLAGS_REQUIRED   += -DPPC -DPPC32 -fno-tree-vectorize
+    else
+      ifeq  ($(ZERO_ARCHDEF),PPC64)
+        CFLAGS_REQUIRED   += -DPPC -DPPC64 -fno-tree-vectorize
+      endif
+    endif
+  endif
 else
+# gcc bug http://gcc.gnu.org/PR63341 in ppc code generation requires -fno-tree-vectorize for now
+CFLAGS_REQUIRED_ppc     += -fno-tree-vectorize
+CFLAGS_REQUIRED_ppc64   += -fno-tree-vectorize
+#
   CFLAGS_REQUIRED       =  $(CFLAGS_REQUIRED_$(ARCH))
   LDFLAGS_COMMON        += $(LDFLAGS_COMMON_$(ARCH))
 endif