Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/makefiles/zeroshark.make
32284 views
#1# Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.2# Copyright 2007, 2008 Red Hat, Inc.3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4#5# This code is free software; you can redistribute it and/or modify it6# under the terms of the GNU General Public License version 2 only, as7# published by the Free Software Foundation.8#9# This code is distributed in the hope that it will be useful, but WITHOUT10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12# version 2 for more details (a copy is included in the LICENSE file that13# accompanied this code).14#15# You should have received a copy of the GNU General Public License version16# 2 along with this work; if not, write to the Free Software Foundation,17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18#19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20# or visit www.oracle.com if you need additional information or have any21# questions.22#23#2425# Setup common to Zero (non-Shark) and Shark versions of VM2627# Some versions of llvm do not like -Wundef28ifeq ($(JVM_VARIANT_ZEROSHARK), true)29WARNING_FLAGS += -Wno-undef30endif31# Suppress some warning flags that are normally turned on for hotspot,32# because some of the zero code has not been updated accordingly.33WARNING_FLAGS += -Wno-return-type \34-Wno-format-nonliteral -Wno-format-security \35-Wno-maybe-uninitialized363738# If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to39# the compiler so as to be able to produce optimized objects40# without losing precision.41ifneq ($(FDLIBM_CFLAGS),)42OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)43OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)44else45OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)46OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)47endif4849# Specify that the CPU is little endian, if necessary50ifeq ($(ZERO_ENDIANNESS), little)51CFLAGS += -DVM_LITTLE_ENDIAN52endif5354# Specify that the CPU is 64 bit, if necessary55ifeq ($(ARCH_DATA_MODEL), 64)56CFLAGS += -D_LP64=157endif585960