# HG changeset patch # User andrew # Date 1567489297 -3600 # Node ID b02fb6a07ed565b248e34ba01d2f337e2ea37f65 # Parent 657162a310c4e069661dbbc4dadf20f4e51f9971 8141570: Fix Zero interpreter build for --disable-precompiled-headers Summary: Prepare Zero build for backport of JDK-8062808. Reviewed-by: sgehwolf diff -r 657162a310c4 -r b02fb6a07ed5 make/linux/makefiles/zeroshark.make --- a/make/linux/makefiles/zeroshark.make Thu Jul 11 09:26:04 2019 -0400 +++ b/make/linux/makefiles/zeroshark.make Tue Sep 03 06:41:37 2019 +0100 @@ -1,5 +1,5 @@ # -# Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. # Copyright 2007, 2008 Red Hat, Inc. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # @@ -25,8 +25,16 @@ # Setup common to Zero (non-Shark) and Shark versions of VM -# override this from the main file because some version of llvm do not like -Wundef -WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wunused-function -Wunused-value +# Some versions of llvm do not like -Wundef +ifeq ($(JVM_VARIANT_ZEROSHARK), true) + WARNING_FLAGS += -Wno-undef +endif +# Suppress some warning flags that are normally turned on for hotspot, +# because some of the zero code has not been updated accordingly. +WARNING_FLAGS += -Wno-return-type \ + -Wno-format-nonliteral -Wno-format-security \ + -Wno-maybe-uninitialized + # If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to # the compiler so as to be able to produce optimized objects @@ -48,5 +56,3 @@ ifeq ($(ARCH_DATA_MODEL), 64) CFLAGS += -D_LP64=1 endif - -OPT_CFLAGS/compactingPermGenGen.o = -O1 diff -r 657162a310c4 -r b02fb6a07ed5 src/share/vm/runtime/java.cpp --- a/src/share/vm/runtime/java.cpp Thu Jul 11 09:26:04 2019 -0400 +++ b/src/share/vm/runtime/java.cpp Tue Sep 03 06:41:37 2019 +0100 @@ -45,6 +45,7 @@ #include "runtime/arguments.hpp" #include "runtime/biasedLocking.hpp" #include "runtime/compilationPolicy.hpp" +#include "runtime/deoptimization.hpp" #include "runtime/fprofiler.hpp" #include "runtime/init.hpp" #include "runtime/interfaceSupport.hpp"