build/solaris/makefiles/sparc.make

changeset 435
a61af66fc99e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/solaris/makefiles/sparc.make	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,124 @@
     1.4 +#
     1.5 +# Copyright 1998-2007 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 +#
     1.8 +# This code is free software; you can redistribute it and/or modify it
     1.9 +# under the terms of the GNU General Public License version 2 only, as
    1.10 +# published by the Free Software Foundation.
    1.11 +#
    1.12 +# This code is distributed in the hope that it will be useful, but WITHOUT
    1.13 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.14 +# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.15 +# version 2 for more details (a copy is included in the LICENSE file that
    1.16 +# accompanied this code).
    1.17 +#
    1.18 +# You should have received a copy of the GNU General Public License version
    1.19 +# 2 along with this work; if not, write to the Free Software Foundation,
    1.20 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.21 +#
    1.22 +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.23 +# CA 95054 USA or visit www.sun.com if you need additional information or
    1.24 +# have any questions.
    1.25 +#  
    1.26 +#
    1.27 +
    1.28 +Obj_Files += solaris_sparc.o
    1.29 +ASFLAGS += $(ARCHFLAG)
    1.30 +
    1.31 +ifeq ("${Platform_compiler}", "sparcWorks")
    1.32 +ifeq ($(shell expr $(COMPILER_REV) \< 5.5), 1)
    1.33 +# For 5.2 ad_sparc file is compiled with -O2 %%%% remove when adlc is fixed
    1.34 +OPT_CFLAGS/ad_sparc.o = $(OPT_CFLAGS/SLOWER)
    1.35 +OPT_CFLAGS/dfa_sparc.o = $(OPT_CFLAGS/SLOWER)
    1.36 +# CC drops core on systemDictionary.o in -xO4 mode
    1.37 +OPT_CFLAGS/systemDictionary.o = $(OPT_CFLAGS/SLOWER)
    1.38 +# SC5.0 bug 4284168
    1.39 +OPT_CFLAGS/carRememberedSet.o = $(OPT_CFLAGS/O2)
    1.40 +# Temporarily drop the optimization level for compiling
    1.41 +# jniHandles.cpp to O3 from O4; see bug 4309181
    1.42 +OPT_CFLAGS/jniHandles.o = $(OPT_CFLAGS/O2)
    1.43 +# CC brings an US-II to its knees compiling the vmStructs asserts under -xO4
    1.44 +OPT_CFLAGS/vmStructs.o = $(OPT_CFLAGS/O2)
    1.45 +endif
    1.46 +else
    1.47 +# Options for gcc
    1.48 +OPT_CFLAGS/ad_sparc.o = $(OPT_CFLAGS/SLOWER)
    1.49 +OPT_CFLAGS/dfa_sparc.o = $(OPT_CFLAGS/SLOWER)
    1.50 +OPT_CFLAGS/systemDictionary.o = $(OPT_CFLAGS/SLOWER)
    1.51 +OPT_CFLAGS/carRememberedSet.o = $(OPT_CFLAGS/O2)
    1.52 +OPT_CFLAGS/jniHandles.o = $(OPT_CFLAGS/O2)
    1.53 +OPT_CFLAGS/vmStructs.o = $(OPT_CFLAGS/O2)
    1.54 +endif
    1.55 +
    1.56 +# File-specific adjustments to the PICFLAG, applicable only to SPARC,
    1.57 +# which has a very tight limit on global constant references.
    1.58 +
    1.59 +# Old files which seemed hot at one point or another:
    1.60 +#PICFLAG/runtime.o = $(PICFLAG/BETTER)
    1.61 +#PICFLAG/generateOopMap.o = $(PICFLAG/BETTER)
    1.62 +#PICFLAG/thread.o = $(PICFLAG/BETTER)
    1.63 +#PICFLAG/parse2.o = $(PICFLAG/BETTER)
    1.64 +#PICFLAG/parse1.o = $(PICFLAG/BETTER)
    1.65 +#PICFLAG/universe.o = $(PICFLAG/BETTER)
    1.66 +#PICFLAG/safepoint.o = $(PICFLAG/BETTER)
    1.67 +#PICFLAG/parse3.o = $(PICFLAG/BETTER)
    1.68 +#PICFLAG/compile.o = $(PICFLAG/BETTER)
    1.69 +#PICFLAG/codeBlob.o = $(PICFLAG/BETTER)
    1.70 +#PICFLAG/mutexLocker.o = $(PICFLAG/BETTER)
    1.71 +#PICFLAG/nativeInst_sparc.o = $(PICFLAG/BETTER)
    1.72 +#PICFLAG/methodLiveness.o = $(PICFLAG/BETTER)
    1.73 +#PICFLAG/synchronizer.o = $(PICFLAG/BETTER)
    1.74 +#PICFLAG/methodOop.o = $(PICFLAG/BETTER)
    1.75 +#PICFLAG/space.o = $(PICFLAG/BETTER)
    1.76 +#PICFLAG/interpreterRT_sparc.o = $(PICFLAG/BETTER)
    1.77 +#PICFLAG/generation.o = $(PICFLAG/BETTER)
    1.78 +#PICFLAG/markSweep.o = $(PICFLAG/BETTER)
    1.79 +#PICFLAG/parseHelper.o = $(PICFLAG/BETTER)
    1.80 +
    1.81 +# Confirmed by function-level profiling:
    1.82 +PICFLAG/scavenge.o = $(PICFLAG/BETTER)
    1.83 +PICFLAG/instanceKlass.o = $(PICFLAG/BETTER)
    1.84 +PICFLAG/frame.o = $(PICFLAG/BETTER)
    1.85 +PICFLAG/phaseX.o = $(PICFLAG/BETTER)
    1.86 +PICFLAG/lookupCache.o = $(PICFLAG/BETTER)
    1.87 +PICFLAG/chaitin.o = $(PICFLAG/BETTER)
    1.88 +PICFLAG/type.o = $(PICFLAG/BETTER)
    1.89 +PICFLAG/jvm.o = $(PICFLAG/BETTER)
    1.90 +PICFLAG/jni.o = $(PICFLAG/BETTER)
    1.91 +PICFLAG/matcher.o = $(PICFLAG/BETTER)
    1.92 +
    1.93 +# New from module-level profiling (trustworthy?):
    1.94 +PICFLAG/rememberedSet.o = $(PICFLAG/BETTER)
    1.95 +PICFLAG/frame_sparc.o = $(PICFLAG/BETTER)
    1.96 +PICFLAG/live.o = $(PICFLAG/BETTER)
    1.97 +PICFLAG/vectset.o = $(PICFLAG/BETTER)
    1.98 +PICFLAG/objArrayKlass.o = $(PICFLAG/BETTER)
    1.99 +PICFLAG/do_call.o = $(PICFLAG/BETTER)
   1.100 +PICFLAG/loopnode.o = $(PICFLAG/BETTER)
   1.101 +PICFLAG/cfgnode.o = $(PICFLAG/BETTER)
   1.102 +PICFLAG/ifg.o = $(PICFLAG/BETTER)
   1.103 +PICFLAG/vframe.o = $(PICFLAG/BETTER)
   1.104 +PICFLAG/postaloc.o = $(PICFLAG/BETTER)
   1.105 +PICFLAG/carRememberedSet.o = $(PICFLAG/BETTER)
   1.106 +PICFLAG/gcm.o = $(PICFLAG/BETTER)
   1.107 +PICFLAG/coalesce.o = $(PICFLAG/BETTER)
   1.108 +PICFLAG/oop.o = $(PICFLAG/BETTER)
   1.109 +PICFLAG/oopMap.o = $(PICFLAG/BETTER)
   1.110 +PICFLAG/resourceArea.o = $(PICFLAG/BETTER)
   1.111 +PICFLAG/node.o = $(PICFLAG/BETTER)
   1.112 +PICFLAG/dict.o = $(PICFLAG/BETTER)
   1.113 +PICFLAG/domgraph.o = $(PICFLAG/BETTER)
   1.114 +PICFLAG/dfa_sparc.o = $(PICFLAG/BETTER)
   1.115 +PICFLAG/block.o = $(PICFLAG/BETTER)
   1.116 +PICFLAG/javaClasses.o = $(PICFLAG/BETTER)
   1.117 +
   1.118 +# New hot files:
   1.119 +PICFLAG/classes.o = $(PICFLAG/BETTER)
   1.120 +#PICFLAG/ad_sparc.o = $(PICFLAG/BETTER)
   1.121 +PICFLAG/nmethod.o = $(PICFLAG/BETTER)
   1.122 +PICFLAG/relocInfo.o = $(PICFLAG/BETTER)
   1.123 +PICFLAG/codeBuffer_sparc.o = $(PICFLAG/BETTER)
   1.124 +PICFLAG/callnode.o = $(PICFLAG/BETTER)
   1.125 +PICFLAG/multnode.o = $(PICFLAG/BETTER)
   1.126 +PICFLAG/os_solaris.o = $(PICFLAG/BETTER)
   1.127 +PICFLAG/typeArrayKlass.o = $(PICFLAG/BETTER)

mercurial