Blame SOURCES/jdk8141570-pr3548-fix_zero_interpreter_build_for_disable_precompiled_headers.patch

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