Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/make/linux/makefiles/ppc64.make
32284 views
#1# Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.2# Copyright 2012, 2013 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# make c code know it is on a 64 bit platform.26CFLAGS += -D_LP64=12728ifeq ($(origin OPENJDK_TARGET_CPU_ENDIAN),undefined)29# This can happen during hotspot standalone build. Set endianness from30# uname. We assume build and target machines are the same.31OPENJDK_TARGET_CPU_ENDIAN:=$(if $(filter ppc64le,$(shell uname -m)),little,big)32endif3334ifeq ($(filter $(OPENJDK_TARGET_CPU_ENDIAN),big little),)35$(error OPENJDK_TARGET_CPU_ENDIAN value should be 'big' or 'little')36endif3738ifeq ($(OPENJDK_TARGET_CPU_ENDIAN),big)39# fixes `relocation truncated to fit' error for gcc 4.1.40CFLAGS += -mminimal-toc4142# finds use ppc64 instructions, but schedule for power543CFLAGS += -mcpu=powerpc64 -mtune=power5 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string44else45# Little endian machine uses ELFv2 ABI.46CFLAGS += -DVM_LITTLE_ENDIAN -DABI_ELFv24748# Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.49CFLAGS += -mcpu=power7 -mtune=power8 -minsert-sched-nops=regroup_exact -mno-multiple -mno-string50endif5152# If FDLIBM_CFLAGS is non-empty it holds CFLAGS needed to be passed to53# the compiler so as to be able to produce optimized objects54# without losing precision.55ifneq ($(FDLIBM_CFLAGS),)56OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)57OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/SPEED) $(FDLIBM_CFLAGS)58else59OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)60OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)61endif626364