hotspot/make/solaris/makefiles/sparc.make
author kvn
Wed, 12 Nov 2008 11:01:31 -0800
changeset 1549 710f8deef989
parent 670 ddf3e9583f2f
child 1552 45c617d33fa6
permissions -rw-r--r--
6769748: Fix solaris makefiles for the case when "CC -V" produces several lines Summary: Fix solaris makefiles for 5.10 compilers Reviewed-by: jcoomes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
#
670
ddf3e9583f2f 6719955: Update copyright year
xdono
parents: 584
diff changeset
     2
# Copyright 1998-2008 Sun Microsystems, Inc.  All Rights Reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
# accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
# CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
# have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
#  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
#
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
Obj_Files += solaris_sparc.o
584
02175b2b64e6 6563752: Build and test JDK7 with Sun Studio 12 Express compilers (prep makefiles)
ohair
parents: 338
diff changeset
    26
ASFLAGS += $(AS_ARCHFLAG)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
ifeq ("${Platform_compiler}", "sparcWorks")
1549
710f8deef989 6769748: Fix solaris makefiles for the case when "CC -V" produces several lines
kvn
parents: 670
diff changeset
    29
ifeq ($(shell expr $(COMPILER_REV_NUMARIC) \< 505), 1)
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
# For 5.2 ad_sparc file is compiled with -O2 %%%% remove when adlc is fixed
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
OPT_CFLAGS/ad_sparc.o = $(OPT_CFLAGS/SLOWER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
OPT_CFLAGS/dfa_sparc.o = $(OPT_CFLAGS/SLOWER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
# CC drops core on systemDictionary.o in -xO4 mode
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
OPT_CFLAGS/systemDictionary.o = $(OPT_CFLAGS/SLOWER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
# SC5.0 bug 4284168
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
OPT_CFLAGS/carRememberedSet.o = $(OPT_CFLAGS/O2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
# Temporarily drop the optimization level for compiling
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
# jniHandles.cpp to O3 from O4; see bug 4309181
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
OPT_CFLAGS/jniHandles.o = $(OPT_CFLAGS/O2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
# CC brings an US-II to its knees compiling the vmStructs asserts under -xO4
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
OPT_CFLAGS/vmStructs.o = $(OPT_CFLAGS/O2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
else
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
# Options for gcc
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
OPT_CFLAGS/ad_sparc.o = $(OPT_CFLAGS/SLOWER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
OPT_CFLAGS/dfa_sparc.o = $(OPT_CFLAGS/SLOWER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
OPT_CFLAGS/systemDictionary.o = $(OPT_CFLAGS/SLOWER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
OPT_CFLAGS/carRememberedSet.o = $(OPT_CFLAGS/O2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
OPT_CFLAGS/jniHandles.o = $(OPT_CFLAGS/O2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
OPT_CFLAGS/vmStructs.o = $(OPT_CFLAGS/O2)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
# File-specific adjustments to the PICFLAG, applicable only to SPARC,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
# which has a very tight limit on global constant references.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
# Old files which seemed hot at one point or another:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
#PICFLAG/runtime.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
#PICFLAG/generateOopMap.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
#PICFLAG/thread.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
#PICFLAG/parse2.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
#PICFLAG/parse1.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
#PICFLAG/universe.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
#PICFLAG/safepoint.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
#PICFLAG/parse3.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
#PICFLAG/compile.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
#PICFLAG/codeBlob.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
#PICFLAG/mutexLocker.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
#PICFLAG/nativeInst_sparc.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
#PICFLAG/methodLiveness.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
#PICFLAG/synchronizer.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
#PICFLAG/methodOop.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
#PICFLAG/space.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
#PICFLAG/interpreterRT_sparc.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
#PICFLAG/generation.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
#PICFLAG/markSweep.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
#PICFLAG/parseHelper.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
# Confirmed by function-level profiling:
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
PICFLAG/scavenge.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
PICFLAG/instanceKlass.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
PICFLAG/frame.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
PICFLAG/phaseX.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
PICFLAG/lookupCache.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
PICFLAG/chaitin.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
PICFLAG/type.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
PICFLAG/jvm.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
PICFLAG/jni.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
PICFLAG/matcher.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
# New from module-level profiling (trustworthy?):
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
PICFLAG/rememberedSet.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
PICFLAG/frame_sparc.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
PICFLAG/live.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
PICFLAG/vectset.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
PICFLAG/objArrayKlass.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
PICFLAG/do_call.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
PICFLAG/loopnode.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
PICFLAG/cfgnode.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
PICFLAG/ifg.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
PICFLAG/vframe.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
PICFLAG/postaloc.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
PICFLAG/carRememberedSet.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
PICFLAG/gcm.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
PICFLAG/coalesce.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
PICFLAG/oop.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
PICFLAG/oopMap.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
PICFLAG/resourceArea.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
PICFLAG/node.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
PICFLAG/dict.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
PICFLAG/domgraph.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
PICFLAG/dfa_sparc.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
PICFLAG/block.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
PICFLAG/javaClasses.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
# New hot files:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
PICFLAG/classes.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
#PICFLAG/ad_sparc.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
PICFLAG/nmethod.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
PICFLAG/relocInfo.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
PICFLAG/codeBuffer_sparc.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
PICFLAG/callnode.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
PICFLAG/multnode.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
PICFLAG/os_solaris.o = $(PICFLAG/BETTER)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
PICFLAG/typeArrayKlass.o = $(PICFLAG/BETTER)