Blame SOURCES/8141570-pr3548.patch

605045
# HG changeset patch
605045
# User coleenp
605045
# Date 1525713256 -3600
605045
#      Mon May 07 18:14:16 2018 +0100
605045
# Node ID bcbc64dfb629c5f188bbf59b8f986ad95963ed60
605045
# Parent  07a1135a327362f157955d470fad5df07cc35164
605045
8141570, PR3548: Fix Zero interpreter build for --disable-precompiled-headers
605045
Summary: change to include atomic.inline.hpp and allocation.inline.hpp only in .cpp files and some build fixes from Kim to build on ubuntu without devkits
605045
Reviewed-by: kbarrett, sgehwolf, erikj
605045
605045
diff --git openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make openjdk/hotspot/make/linux/makefiles/zeroshark.make
605045
--- openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make
605045
+++ openjdk/hotspot/make/linux/makefiles/zeroshark.make
605045
@@ -1,5 +1,5 @@
605045
 #
605045
-# Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
605045
+# Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
605045
 # Copyright 2007, 2008 Red Hat, Inc.
605045
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
605045
 #
605045
@@ -25,8 +25,15 @@
605045
 
605045
 # Setup common to Zero (non-Shark) and Shark versions of VM
605045
 
605045
-# override this from the main file because some version of llvm do not like -Wundef
605045
-WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value
605045
+# Some versions of llvm do not like -Wundef
605045
+ifeq ($(USE_CLANG), true)
605045
+  WARNING_FLAGS += -Wno-undef
605045
+endif
605045
+# Suppress some warning flags that are normally turned on for hotspot,
605045
+# because some of the zero code has not been updated accordingly.
605045
+WARNING_FLAGS += -Wno-return-type \
605045
+  -Wno-format-nonliteral -Wno-format-security \
605045
+  -Wno-maybe-uninitialized
605045
 
605045
 # The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized
605045
 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
605045
@@ -42,5 +49,3 @@
605045
 ifeq ($(ARCH_DATA_MODEL), 64)
605045
   CFLAGS += -D_LP64=1
605045
 endif
605045
-
605045
-OPT_CFLAGS/compactingPermGenGen.o = -O1
605045
diff --git openjdk.orig/hotspot/src/share/vm/runtime/java.cpp openjdk/hotspot/src/share/vm/runtime/java.cpp
605045
--- openjdk.orig/hotspot/src/share/vm/runtime/java.cpp
605045
+++ openjdk/hotspot/src/share/vm/runtime/java.cpp
605045
@@ -45,6 +45,7 @@
605045
 #include "runtime/arguments.hpp"
605045
 #include "runtime/biasedLocking.hpp"
605045
 #include "runtime/compilationPolicy.hpp"
605045
+#include "runtime/deoptimization.hpp"
605045
 #include "runtime/fprofiler.hpp"
605045
 #include "runtime/init.hpp"
605045
 #include "runtime/interfaceSupport.hpp"