Blame SOURCES/jdk8141570-pr3548-fix_zero_interpreter_build_for_disable_precompiled_headers.patch

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