Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/solaris/makefiles/fastdebug.make
32284 views
#1# Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.2# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3#4# This code is free software; you can redistribute it and/or modify it5# under the terms of the GNU General Public License version 2 only, as6# published by the Free Software Foundation.7#8# This code is distributed in the hope that it will be useful, but WITHOUT9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11# version 2 for more details (a copy is included in the LICENSE file that12# accompanied this code).13#14# You should have received a copy of the GNU General Public License version15# 2 along with this work; if not, write to the Free Software Foundation,16# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17#18# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19# or visit www.oracle.com if you need additional information or have any20# questions.21#22#2324# Sets make macros for making debug version of VM2526# Compiler specific DEBUG_CFLAGS are passed in from gcc.make, sparcWorks.make27# They may also specify FASTDEBUG_CFLAGS, but it defaults to DEBUG_CFLAGS.2829FASTDEBUG_CFLAGS$(FASTDEBUG_CFLAGS) = $(DEBUG_CFLAGS)3031# Compiler specific OPT_CFLAGS are passed in from gcc.make, sparcWorks.make32OPT_CFLAGS/DEFAULT= $(OPT_CFLAGS)33OPT_CFLAGS/BYFILE = $(OPT_CFLAGS/$@)$(OPT_CFLAGS/DEFAULT$(OPT_CFLAGS/$@))3435ifeq ("${Platform_compiler}", "sparcWorks")36OPT_CFLAGS/SLOWER = -xO23738ifeq ($(COMPILER_REV_NUMERIC), 510)39# Avoid apparent crash because of corrupted methodHandle in a tail call40OPT_CFLAGS/simpleThresholdPolicy.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT)41# CC 5.10 has bug XXXXX with -xO442OPT_CFLAGS/jvmtiClassFileReconstituter.o = $(OPT_CFLAGS/SLOWER)43endif # COMPILER_REV_NUMERIC == 5104445ifeq ($(COMPILER_REV_NUMERIC), 509)46# To avoid jvm98 crash47OPT_CFLAGS/instanceKlass.o = $(OPT_CFLAGS/SLOWER)48endif # COMPILER_NUMERIC_REV == 5094950ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)51# dtrace cannot handle tail call optimization (6672627, 6693876)52OPT_CFLAGS/jni.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT)53# this hangs in iropt now (7113504)54OPT_CFLAGS/compileBroker.o = $(OPT_CFLAGS/SLOWER)55endif # COMPILER_NUMERIC_REV >= 5095657ifeq ($(COMPILER_REV_NUMERIC), 505)58# CC 5.5 has bug 4908364 with -xO4 (Fixed in 5.6)59OPT_CFLAGS/library_call.o = $(OPT_CFLAGS/SLOWER)60endif # COMPILER_REV_NUMERIC == 5056162ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \<= 504), 1)63# Compilation of *_<arch>.cpp can take an hour or more at O3. Use O264# See comments at top of sparc.make.65OPT_CFLAGS/ad_$(Platform_arch_model).o = $(OPT_CFLAGS/SLOWER)66OPT_CFLAGS/dfa_$(Platform_arch_model).o = $(OPT_CFLAGS/SLOWER)67endif # COMPILER_REV_NUMERIC <= 5046869ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \< 505), 1)70# Same problem with Solaris/x86 compiler (both 5.0 and 5.2) on ad_x86_{32,64}.cpp.71# CC build time is also too long for ad_$(Platform_arch_model)_{gen,misc}.o72OPT_CFLAGS/ad_$(Platform_arch_model).o = -c73OPT_CFLAGS/ad_$(Platform_arch_model)_gen.o = -c74OPT_CFLAGS/ad_$(Platform_arch_model)_misc.o = -c75ifeq ($(Platform_arch), x86)76# Same problem for the wrapper roosts: jni.o jvm.o77OPT_CFLAGS/jni.o = -c78OPT_CFLAGS/jvm.o = -c79# Same problem in parse2.o (probably the Big Switch over bytecodes)80OPT_CFLAGS/parse2.o = -c81endif # Platform_arch == x8682endif8384# Frame size > 100k if we allow inlining via -g0!85DEBUG_CFLAGS/bytecodeInterpreter.o = -g86DEBUG_CFLAGS/bytecodeInterpreterWithChecks.o = -g87ifeq ($(Platform_arch), x86)88# ube explodes on x8689OPT_CFLAGS/bytecodeInterpreter.o = -xO190OPT_CFLAGS/bytecodeInterpreterWithChecks.o = -xO191endif # Platform_arch == x869293endif # Platform_compiler == sparcWorks9495# Workaround for a bug in dtrace. If ciEnv::post_compiled_method_load_event()96# is inlined, the resulting dtrace object file needs a reference to this97# function, whose symbol name is too long for dtrace. So disable inlining98# for this method for now. (fix this when dtrace bug 6258412 is fixed)99OPT_CFLAGS/ciEnv.o = $(OPT_CFLAGS) -xinline=no%__1cFciEnvbFpost_compiled_method_load_event6MpnHnmethod__v_100101# (OPT_CFLAGS/SLOWER is also available, to alter compilation of buggy files)102103# If you set HOTSPARC_GENERIC=yes, you disable all OPT_CFLAGS settings104CFLAGS$(HOTSPARC_GENERIC) += $(OPT_CFLAGS/BYFILE)105106# Set the environment variable HOTSPARC_GENERIC to "true"107# to inhibit the effect of the previous line on CFLAGS.108109# The following lines are copied from debug.make, except that we110# consult FASTDEBUG_CFLAGS instead of DEBUG_CFLAGS.111# Compiler specific DEBUG_CFLAGS are passed in from gcc.make, sparcWorks.make112DEBUG_CFLAGS/DEFAULT= $(FASTDEBUG_CFLAGS)113DEBUG_CFLAGS/BYFILE = $(DEBUG_CFLAGS/$@)$(DEBUG_CFLAGS/DEFAULT$(DEBUG_CFLAGS/$@))114CFLAGS += $(DEBUG_CFLAGS/BYFILE)115116# Linker mapfiles117MAPFILE = $(GAMMADIR)/make/solaris/makefiles/mapfile-vers \118$(GAMMADIR)/make/solaris/makefiles/mapfile-vers-debug119120# This mapfile is only needed when compiling with dtrace support,121# and mustn't be otherwise.122MAPFILE_DTRACE = $(GAMMADIR)/make/solaris/makefiles/mapfile-vers-$(TYPE)123124VERSION = optimized125SYSDEFS += -DASSERT -DCHECK_UNHANDLED_OOPS126PICFLAGS = DEFAULT127128129