make/aix/makefiles/ppc64.make

Print this page
rev 8019 : 8075858: AIX: clean-up HotSpot make files
   1 #
   2 # Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # Copyright 2012, 2013 SAP AG. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #  


  54 #  - 540-1088 (W) The exception specification is being ignored.
  55 # caused by throw() in declaration of new() in nmethod.hpp.
  56 CFLAGS += -qsuppress=1540-1088
  57 
  58 # Turn off floating-point optimizations that may alter program semantics
  59 OPT_CFLAGS += -qstrict
  60 
  61 # Disable aggressive optimizations for functions in sharedRuntimeTrig.cpp 
  62 # and sharedRuntimeTrans.cpp on ppc64. 
  63 # -qstrict turns off the following optimizations:
  64 #   * Performing code motion and scheduling on computations such as loads
  65 #     and floating-point computations that may trigger an exception.
  66 #   * Relaxing conformance to IEEE rules.
  67 #   * Reassociating floating-point expressions.
  68 # When using '-qstrict' there still remains one problem
  69 # in javasoft.sqe.tests.api.java.lang.Math.sin5Tests when run in compile-all
  70 # mode, so don't optimize sharedRuntimeTrig.cpp at all.
  71 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
  72 OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
  73 
  74 # xlc 10.01 parameters for ipa compile.
  75 QIPA_COMPILE=$(if $(CXX_IS_V10),-qipa)
  76 
  77 # Xlc 10.1 parameters for aggressive optimization:
  78 # - qhot=level=1: Most aggressive loop optimizations.
  79 # - qignerrno: Assume errno is not modified by system calls.
  80 # - qinline: Inline method calls. No suboptions for c++ compiles.
  81 # - qxflag=ASMMIDCOALFIX: Activate fix for -O3 problem in interpreter loop.
  82 # - qxflag=asmfastsync: Activate fix for performance problem with inline assembler with memory clobber.
  83 QV10_OPT=$(if $(CXX_IS_V10),-qxflag=ASMMIDCOALFIX -qxflag=asmfastsync)
  84 QV10_OPT_AGGRESSIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)
  85 QV10_OPT_CONSERVATIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)
  86 
  87 # Disallow inlining for synchronizer.cpp, but perform O3 optimizations.
  88 OPT_CFLAGS/synchronizer.o = $(OPT_CFLAGS) -qnoinline
  89 
  90 # Set all the xlC V10.1 options here.
  91 OPT_CFLAGS += $(QIPA_COMPILE) $(QV10_OPT) $(QV10_OPT_AGGRESSIVE)
  92 
  93 export OBJECT_MODE=64
  94 
  95 # Also build launcher as 64 bit executable.
  96 LAUNCHERFLAGS += -q64
   1 #
   2 # Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
   3 # Copyright 2012, 2015 SAP AG. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #  


  54 #  - 540-1088 (W) The exception specification is being ignored.
  55 # caused by throw() in declaration of new() in nmethod.hpp.
  56 CFLAGS += -qsuppress=1540-1088
  57 
  58 # Turn off floating-point optimizations that may alter program semantics
  59 OPT_CFLAGS += -qstrict
  60 
  61 # Disable aggressive optimizations for functions in sharedRuntimeTrig.cpp 
  62 # and sharedRuntimeTrans.cpp on ppc64. 
  63 # -qstrict turns off the following optimizations:
  64 #   * Performing code motion and scheduling on computations such as loads
  65 #     and floating-point computations that may trigger an exception.
  66 #   * Relaxing conformance to IEEE rules.
  67 #   * Reassociating floating-point expressions.
  68 # When using '-qstrict' there still remains one problem
  69 # in javasoft.sqe.tests.api.java.lang.Math.sin5Tests when run in compile-all
  70 # mode, so don't optimize sharedRuntimeTrig.cpp at all.
  71 OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT)
  72 OPT_CFLAGS/sharedRuntimeTrans.o = $(OPT_CFLAGS/NOOPT)
  73 



  74 # Xlc 10.1 parameters for aggressive optimization:
  75 # - qhot=level=1: Most aggressive loop optimizations.
  76 # - qignerrno: Assume errno is not modified by system calls.
  77 # - qinline: Inline method calls. No suboptions for c++ compiles.
  78 # - qxflag=ASMMIDCOALFIX: Activate fix for -O3 problem in interpreter loop.
  79 # - qxflag=asmfastsync: Activate fix for performance problem with inline assembler with memory clobber.
  80 QV10_OPT=$(if $(CXX_IS_V10),-qxflag=ASMMIDCOALFIX -qxflag=asmfastsync)
  81 QV10_OPT_AGGRESSIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)
  82 QV10_OPT_CONSERVATIVE=$(if $(CXX_IS_V10),-qhot=level=1 -qignerrno -qinline)
  83 
  84 # Disallow inlining for synchronizer.cpp, but perform O3 optimizations.
  85 OPT_CFLAGS/synchronizer.o = $(OPT_CFLAGS) -qnoinline
  86 
  87 # Set all the xlC V10.1 options here.
  88 OPT_CFLAGS += $(QV10_OPT) $(QV10_OPT_AGGRESSIVE)
  89 
  90 export OBJECT_MODE=64
  91 
  92 # Also build launcher as 64 bit executable.
  93 LAUNCHERFLAGS += -q64