Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/aix/makefiles/ppc64.make
32284 views
#1# Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.2# Copyright 2012, 2015 SAP AG. All rights reserved.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# Produce 64 bits object files.26CFLAGS += -q642728# Balanced tuning for recent versions of the POWER architecture (if supported by xlc).29QTUNE=$(if $(CXX_SUPPORTS_BALANCED_TUNING),balanced,pwr5)3031# Try to speed up the interpreter: use ppc64 instructions and inline32# glue code for external functions.33OPT_CFLAGS += -qarch=ppc64 -qtune=$(QTUNE) -qinlglue3435# We need variable length arrays36CFLAGS += -qlanglvl=c99vla37# Just to check for unwanted macro redefinitions38CFLAGS += -qlanglvl=noredefmac3940# Suppress those "implicit private" warnings xlc gives.41# - The omitted keyword "private" is assumed for base class "...".42CFLAGS += -qsuppress=1540-01984344# Suppress the following numerous warning:45# - 1540-1090 (I) The destructor of "..." might not be called.46# - 1500-010: (W) WARNING in ...: Infinite loop. Program may not stop.47# There are several infinite loops in the vm, suppress.48# - 1540-1639 (I) The behavior of long type bit fields has changed ...49# ... long type bit fields now default to long, not int.50CFLAGS += -qsuppress=1540-1090 -qsuppress=1500-010 -qsuppress=1540-16395152# Suppress53# - 540-1088 (W) The exception specification is being ignored.54# caused by throw() in declaration of new() in nmethod.hpp.55CFLAGS += -qsuppress=1540-10885657# Turn off floating-point optimizations that may alter program semantics58OPT_CFLAGS += -qstrict5960# Disable aggressive optimizations for functions in sharedRuntimeTrig.cpp61# and sharedRuntimeTrans.cpp on ppc64.62# -qstrict turns off the following optimizations:63# * Performing code motion and scheduling on computations such as loads64# and floating-point computations that may trigger an exception.65# * Relaxing conformance to IEEE rules.66# * Reassociating floating-point expressions.67# When using '-qstrict' there still remains one problem68# in javasoft.sqe.tests.api.java.lang.Math.sin5Tests when run in compile-all69# mode, so don't optimize sharedRuntimeTrig.cpp at all.70OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)71OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)7273# Xlc 10.1 parameters for aggressive optimization:74# - qhot=level=1: Most aggressive loop optimizations.75# - qignerrno: Assume errno is not modified by system calls.76# - qinline: Inline method calls. No suboptions for c++ compiles.77# - qxflag=ASMMIDCOALFIX: Activate fix for -O3 problem in interpreter loop.78# - qxflag=asmfastsync: Activate fix for performance problem with inline assembler with memory clobber.79QV10_OPT=$(if $(CXX_IS_V10),-qxflag=ASMMIDCOALFIX -qxflag=asmfastsync)80QV10_OPT_AGGRESSIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)81QV10_OPT_CONSERVATIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)8283# Disallow inlining for synchronizer.cpp, but perform O3 optimizations.84OPT_CFLAGS/synchronizer.o = $(OPT_CFLAGS) -qnoinline8586# Set all the xlC V10.1 options here.87OPT_CFLAGS += $(QV10_OPT) $(QV10_OPT_AGGRESSIVE)8889export OBJECT_MODE=649091# Also build launcher as 64 bit executable.92LAUNCHERFLAGS += -q64939495