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