Blame jdk8141570-pr3548-fix_zero_interpreter_build_for_disable_precompiled_headers.patch

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