make/aix/makefiles/ppc64.make

Fri, 28 Aug 2020 07:38:21 +0100

author
andrew
date
Fri, 28 Aug 2020 07:38:21 +0100
changeset 9995
633a3d28d2fe
parent 7650
dfa21a177d66
permissions
-rw-r--r--

8251120: [8u] HotSpot build assumes ENABLE_JFR is set to either true or false
Summary: Only test for ENABLE_JFR being true, and assume undefined == false
Reviewed-by: neugens

aoqi@0 1 #
simonis@7650 2 # Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
simonis@7650 3 # Copyright 2012, 2015 SAP AG. All rights reserved.
aoqi@0 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 5 #
aoqi@0 6 # This code is free software; you can redistribute it and/or modify it
aoqi@0 7 # under the terms of the GNU General Public License version 2 only, as
aoqi@0 8 # published by the Free Software Foundation.
aoqi@0 9 #
aoqi@0 10 # This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 13 # version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 14 # accompanied this code).
aoqi@0 15 #
aoqi@0 16 # You should have received a copy of the GNU General Public License version
aoqi@0 17 # 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 19 #
aoqi@0 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 21 # or visit www.oracle.com if you need additional information or have any
aoqi@0 22 # questions.
aoqi@0 23 #
aoqi@0 24 #
aoqi@0 25
aoqi@0 26 # Produce 64 bits object files.
aoqi@0 27 CFLAGS += -q64
aoqi@0 28
aoqi@0 29 # Balanced tuning for recent versions of the POWER architecture (if supported by xlc).
aoqi@0 30 QTUNE=$(if $(CXX_SUPPORTS_BALANCED_TUNING),balanced,pwr5)
aoqi@0 31
aoqi@0 32 # Try to speed up the interpreter: use ppc64 instructions and inline
aoqi@0 33 # glue code for external functions.
aoqi@0 34 OPT_CFLAGS += -qarch=ppc64 -qtune=$(QTUNE) -qinlglue
aoqi@0 35
aoqi@0 36 # We need variable length arrays
aoqi@0 37 CFLAGS += -qlanglvl=c99vla
aoqi@0 38 # Just to check for unwanted macro redefinitions
aoqi@0 39 CFLAGS += -qlanglvl=noredefmac
aoqi@0 40
aoqi@0 41 # Suppress those "implicit private" warnings xlc gives.
aoqi@0 42 # - The omitted keyword "private" is assumed for base class "...".
aoqi@0 43 CFLAGS += -qsuppress=1540-0198
aoqi@0 44
aoqi@0 45 # Suppress the following numerous warning:
aoqi@0 46 # - 1540-1090 (I) The destructor of "..." might not be called.
aoqi@0 47 # - 1500-010: (W) WARNING in ...: Infinite loop. Program may not stop.
aoqi@0 48 # There are several infinite loops in the vm, suppress.
simonis@7649 49 # - 1540-1639 (I) The behavior of long type bit fields has changed ...
simonis@7649 50 # ... long type bit fields now default to long, not int.
simonis@7649 51 CFLAGS += -qsuppress=1540-1090 -qsuppress=1500-010 -qsuppress=1540-1639
aoqi@0 52
aoqi@0 53 # Suppress
aoqi@0 54 # - 540-1088 (W) The exception specification is being ignored.
aoqi@0 55 # caused by throw() in declaration of new() in nmethod.hpp.
aoqi@0 56 CFLAGS += -qsuppress=1540-1088
aoqi@0 57
aoqi@0 58 # Turn off floating-point optimizations that may alter program semantics
aoqi@0 59 OPT_CFLAGS += -qstrict
aoqi@0 60
aoqi@0 61 # Disable aggressive optimizations for functions in sharedRuntimeTrig.cpp
aoqi@0 62 # and sharedRuntimeTrans.cpp on ppc64.
aoqi@0 63 # -qstrict turns off the following optimizations:
aoqi@0 64 # * Performing code motion and scheduling on computations such as loads
aoqi@0 65 # and floating-point computations that may trigger an exception.
aoqi@0 66 # * Relaxing conformance to IEEE rules.
aoqi@0 67 # * Reassociating floating-point expressions.
aoqi@0 68 # When using '-qstrict' there still remains one problem
aoqi@0 69 # in javasoft.sqe.tests.api.java.lang.Math.sin5Tests when run in compile-all
aoqi@0 70 # mode, so don't optimize sharedRuntimeTrig.cpp at all.
aoqi@0 71 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
aoqi@0 72 OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
aoqi@0 73
aoqi@0 74 # Xlc 10.1 parameters for aggressive optimization:
aoqi@0 75 # - qhot=level=1: Most aggressive loop optimizations.
aoqi@0 76 # - qignerrno: Assume errno is not modified by system calls.
aoqi@0 77 # - qinline: Inline method calls. No suboptions for c++ compiles.
aoqi@0 78 # - qxflag=ASMMIDCOALFIX: Activate fix for -O3 problem in interpreter loop.
aoqi@0 79 # - qxflag=asmfastsync: Activate fix for performance problem with inline assembler with memory clobber.
aoqi@0 80 QV10_OPT=$(if $(CXX_IS_V10),-qxflag=ASMMIDCOALFIX -qxflag=asmfastsync)
aoqi@0 81 QV10_OPT_AGGRESSIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)
aoqi@0 82 QV10_OPT_CONSERVATIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)
aoqi@0 83
aoqi@0 84 # Disallow inlining for synchronizer.cpp, but perform O3 optimizations.
aoqi@0 85 OPT_CFLAGS/synchronizer.o = $(OPT_CFLAGS) -qnoinline
aoqi@0 86
aoqi@0 87 # Set all the xlC V10.1 options here.
simonis@7650 88 OPT_CFLAGS += $(QV10_OPT) $(QV10_OPT_AGGRESSIVE)
aoqi@0 89
aoqi@0 90 export OBJECT_MODE=64
aoqi@0 91
aoqi@0 92 # Also build launcher as 64 bit executable.
aoqi@0 93 LAUNCHERFLAGS += -q64

mercurial