Blame SOURCES/jdk8141570-pr3548-fix_zero_interpreter_build_for_disable_precompiled_headers.patch

dad174
# HG changeset patch
dad174
# User coleenp
dad174
# Date 1525713256 -3600
dad174
#      Mon May 07 18:14:16 2018 +0100
dad174
# Node ID bcbc64dfb629c5f188bbf59b8f986ad95963ed60
dad174
# Parent  07a1135a327362f157955d470fad5df07cc35164
dad174
8141570, PR3548: Fix Zero interpreter build for --disable-precompiled-headers
dad174
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
dad174
Reviewed-by: kbarrett, sgehwolf, erikj
dad174
dad174
diff --git openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make openjdk/hotspot/make/linux/makefiles/zeroshark.make
dad174
--- openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make
dad174
+++ openjdk/hotspot/make/linux/makefiles/zeroshark.make
dad174
@@ -1,5 +1,5 @@
dad174
 #
dad174
-# Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
dad174
+# Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
dad174
 # Copyright 2007, 2008 Red Hat, Inc.
dad174
 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
dad174
 #
dad174
@@ -25,8 +25,15 @@
dad174
 
dad174
 # Setup common to Zero (non-Shark) and Shark versions of VM
dad174
 
dad174
-# override this from the main file because some version of llvm do not like -Wundef
dad174
-WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value
dad174
+# Some versions of llvm do not like -Wundef
dad174
+ifeq ($(USE_CLANG), true)
dad174
+  WARNING_FLAGS += -Wno-undef
dad174
+endif
dad174
+# Suppress some warning flags that are normally turned on for hotspot,
dad174
+# because some of the zero code has not been updated accordingly.
dad174
+WARNING_FLAGS += -Wno-return-type \
dad174
+  -Wno-format-nonliteral -Wno-format-security \
dad174
+  -Wno-maybe-uninitialized
dad174
 
dad174
 # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to
dad174
 # the compiler so as to be able to produce optimized objects
dad174
@@ -48,5 +55,3 @@
dad174
 ifeq ($(ARCH_DATA_MODEL), 64)
dad174
   CFLAGS += -D_LP64=1
dad174
 endif
dad174
-
dad174
-OPT_CFLAGS/compactingPermGenGen.o = -O1
dad174
diff --git openjdk.orig/hotspot/src/share/vm/runtime/java.cpp openjdk/hotspot/src/share/vm/runtime/java.cpp
dad174
--- openjdk.orig/hotspot/src/share/vm/runtime/java.cpp
dad174
+++ openjdk/hotspot/src/share/vm/runtime/java.cpp
dad174
@@ -45,6 +45,7 @@
dad174
 #include "runtime/arguments.hpp"
dad174
 #include "runtime/biasedLocking.hpp"
dad174
 #include "runtime/compilationPolicy.hpp"
dad174
+#include "runtime/deoptimization.hpp"
dad174
 #include "runtime/fprofiler.hpp"
dad174
 #include "runtime/init.hpp"
dad174
 #include "runtime/interfaceSupport.hpp"