source: trunk/openjdk/hotspot/make/solaris/makefiles/sparc.make

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 4.8 KB
Line 
1#
2# Copyright (c) 1998, 2008, Oracle and/or its affiliates. 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 it
6# under the terms of the GNU General Public License version 2 only, as
7# published by the Free Software Foundation.
8#
9# This code is distributed in the hope that it will be useful, but WITHOUT
10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12# version 2 for more details (a copy is included in the LICENSE file that
13# accompanied this code).
14#
15# You should have received a copy of the GNU General Public License version
16# 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 USA
20# or visit www.oracle.com if you need additional information or have any
21# questions.
22#
23#
24
25Obj_Files += solaris_sparc.o
26ASFLAGS += $(AS_ARCHFLAG)
27
28ifeq ("${Platform_compiler}", "sparcWorks")
29ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \< 505), 1)
30# For 5.2 ad_sparc file is compiled with -O2 %%%% remove when adlc is fixed
31OPT_CFLAGS/ad_sparc.o = $(OPT_CFLAGS/SLOWER)
32OPT_CFLAGS/dfa_sparc.o = $(OPT_CFLAGS/SLOWER)
33# CC drops core on systemDictionary.o in -xO4 mode
34OPT_CFLAGS/systemDictionary.o = $(OPT_CFLAGS/SLOWER)
35# SC5.0 bug 4284168
36OPT_CFLAGS/carRememberedSet.o = $(OPT_CFLAGS/O2)
37# Temporarily drop the optimization level for compiling
38# jniHandles.cpp to O3 from O4; see bug 4309181
39OPT_CFLAGS/jniHandles.o = $(OPT_CFLAGS/O2)
40# CC brings an US-II to its knees compiling the vmStructs asserts under -xO4
41OPT_CFLAGS/vmStructs.o = $(OPT_CFLAGS/O2)
42endif # COMPILER_REV_NUMERIC < 505
43else
44# Options for gcc
45OPT_CFLAGS/ad_sparc.o = $(OPT_CFLAGS/SLOWER)
46OPT_CFLAGS/dfa_sparc.o = $(OPT_CFLAGS/SLOWER)
47OPT_CFLAGS/systemDictionary.o = $(OPT_CFLAGS/SLOWER)
48OPT_CFLAGS/carRememberedSet.o = $(OPT_CFLAGS/O2)
49OPT_CFLAGS/jniHandles.o = $(OPT_CFLAGS/O2)
50OPT_CFLAGS/vmStructs.o = $(OPT_CFLAGS/O2)
51endif
52
53# File-specific adjustments to the PICFLAG, applicable only to SPARC,
54# which has a very tight limit on global constant references.
55
56# Old files which seemed hot at one point or another:
57#PICFLAG/runtime.o = $(PICFLAG/BETTER)
58#PICFLAG/generateOopMap.o = $(PICFLAG/BETTER)
59#PICFLAG/thread.o = $(PICFLAG/BETTER)
60#PICFLAG/parse2.o = $(PICFLAG/BETTER)
61#PICFLAG/parse1.o = $(PICFLAG/BETTER)
62#PICFLAG/universe.o = $(PICFLAG/BETTER)
63#PICFLAG/safepoint.o = $(PICFLAG/BETTER)
64#PICFLAG/parse3.o = $(PICFLAG/BETTER)
65#PICFLAG/compile.o = $(PICFLAG/BETTER)
66#PICFLAG/codeBlob.o = $(PICFLAG/BETTER)
67#PICFLAG/mutexLocker.o = $(PICFLAG/BETTER)
68#PICFLAG/nativeInst_sparc.o = $(PICFLAG/BETTER)
69#PICFLAG/methodLiveness.o = $(PICFLAG/BETTER)
70#PICFLAG/synchronizer.o = $(PICFLAG/BETTER)
71#PICFLAG/methodOop.o = $(PICFLAG/BETTER)
72#PICFLAG/space.o = $(PICFLAG/BETTER)
73#PICFLAG/interpreterRT_sparc.o = $(PICFLAG/BETTER)
74#PICFLAG/generation.o = $(PICFLAG/BETTER)
75#PICFLAG/markSweep.o = $(PICFLAG/BETTER)
76#PICFLAG/parseHelper.o = $(PICFLAG/BETTER)
77
78# Confirmed by function-level profiling:
79PICFLAG/scavenge.o = $(PICFLAG/BETTER)
80PICFLAG/instanceKlass.o = $(PICFLAG/BETTER)
81PICFLAG/frame.o = $(PICFLAG/BETTER)
82PICFLAG/phaseX.o = $(PICFLAG/BETTER)
83PICFLAG/lookupCache.o = $(PICFLAG/BETTER)
84PICFLAG/chaitin.o = $(PICFLAG/BETTER)
85PICFLAG/type.o = $(PICFLAG/BETTER)
86PICFLAG/jvm.o = $(PICFLAG/BETTER)
87PICFLAG/jni.o = $(PICFLAG/BETTER)
88PICFLAG/matcher.o = $(PICFLAG/BETTER)
89
90# New from module-level profiling (trustworthy?):
91PICFLAG/rememberedSet.o = $(PICFLAG/BETTER)
92PICFLAG/frame_sparc.o = $(PICFLAG/BETTER)
93PICFLAG/live.o = $(PICFLAG/BETTER)
94PICFLAG/vectset.o = $(PICFLAG/BETTER)
95PICFLAG/objArrayKlass.o = $(PICFLAG/BETTER)
96PICFLAG/do_call.o = $(PICFLAG/BETTER)
97PICFLAG/loopnode.o = $(PICFLAG/BETTER)
98PICFLAG/cfgnode.o = $(PICFLAG/BETTER)
99PICFLAG/ifg.o = $(PICFLAG/BETTER)
100PICFLAG/vframe.o = $(PICFLAG/BETTER)
101PICFLAG/postaloc.o = $(PICFLAG/BETTER)
102PICFLAG/carRememberedSet.o = $(PICFLAG/BETTER)
103PICFLAG/gcm.o = $(PICFLAG/BETTER)
104PICFLAG/coalesce.o = $(PICFLAG/BETTER)
105PICFLAG/oop.o = $(PICFLAG/BETTER)
106PICFLAG/oopMap.o = $(PICFLAG/BETTER)
107PICFLAG/resourceArea.o = $(PICFLAG/BETTER)
108PICFLAG/node.o = $(PICFLAG/BETTER)
109PICFLAG/dict.o = $(PICFLAG/BETTER)
110PICFLAG/domgraph.o = $(PICFLAG/BETTER)
111PICFLAG/dfa_sparc.o = $(PICFLAG/BETTER)
112PICFLAG/block.o = $(PICFLAG/BETTER)
113PICFLAG/javaClasses.o = $(PICFLAG/BETTER)
114
115# New hot files:
116PICFLAG/classes.o = $(PICFLAG/BETTER)
117#PICFLAG/ad_sparc.o = $(PICFLAG/BETTER)
118PICFLAG/nmethod.o = $(PICFLAG/BETTER)
119PICFLAG/relocInfo.o = $(PICFLAG/BETTER)
120PICFLAG/codeBuffer_sparc.o = $(PICFLAG/BETTER)
121PICFLAG/callnode.o = $(PICFLAG/BETTER)
122PICFLAG/multnode.o = $(PICFLAG/BETTER)
123PICFLAG/os_solaris.o = $(PICFLAG/BETTER)
124PICFLAG/typeArrayKlass.o = $(PICFLAG/BETTER)
Note: See TracBrowser for help on using the repository browser.