1 #
2 # Copyright (c) 1999, 2012, 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
25 # Sets make macros for making optimized version of HotSpot VM
26 # (This is the "product", not the "release" version.)
27
28 # Compiler specific OPT_CFLAGS are passed in from gcc.make, sparcWorks.make
29 OPT_CFLAGS/DEFAULT= $(OPT_CFLAGS)
30 OPT_CFLAGS/BYFILE = $(OPT_CFLAGS/$@)$(OPT_CFLAGS/DEFAULT$(OPT_CFLAGS/$@))
31
32 # Workaround for a bug in dtrace. If ciEnv::post_compiled_method_load_event()
33 # is inlined, the resulting dtrace object file needs a reference to this
34 # function, whose symbol name is too long for dtrace. So disable inlining
35 # for this method for now. (fix this when dtrace bug 6258412 is fixed)
36 ifndef USE_GCC
37 OPT_CFLAGS/ciEnv.o = $(OPT_CFLAGS) -xinline=no%__1cFciEnvbFpost_compiled_method_load_event6MpnHnmethod__v_
38 endif
39
40 # Need extra inlining to get oop_ps_push_contents functions to perform well enough.
41 ifndef USE_GCC
42 OPT_CFLAGS/psPromotionManager.o = $(OPT_CFLAGS) -W2,-Ainline:inc=1000
43 endif
44
45 # (OPT_CFLAGS/SLOWER is also available, to alter compilation of buggy files)
46 ifeq ("${Platform_compiler}", "sparcWorks")
47
48 ifeq ($(COMPILER_REV_NUMERIC), 510)
49 # CC 5.10 has bug XXXXX with -xO4
50 OPT_CFLAGS/jvmtiClassFileReconstituter.o = $(OPT_CFLAGS/O2)
51 # Avoid apparent crash because of corrupted methodHandle in a tail call
52 OPT_CFLAGS/simpleThresholdPolicy.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT)
53 endif # COMPILER_REV_NUMERIC == 510
54
55 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
56 # dtrace cannot handle tail call optimization (6672627, 6693876)
57 OPT_CFLAGS/jni.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT)
58 endif # COMPILER_NUMERIC_REV >= 509
59
60 # Workaround SS11 bug 6345274 (all platforms) (Fixed in SS11 patch and SS12)
61 ifeq ($(COMPILER_REV_NUMERIC),508)
62 OPT_CFLAGS/ciTypeFlow.o = $(OPT_CFLAGS/O2)
63 endif # COMPILER_REV_NUMERIC == 508
64
65 endif # Platform_compiler == sparcWorks
66
67 # If you set HOTSPARC_GENERIC=yes, you disable all OPT_CFLAGS settings
68 CFLAGS$(HOTSPARC_GENERIC) += $(OPT_CFLAGS/BYFILE)
69 # Set the environment variable HOTSPARC_GENERIC to "true"
70 # to inhibit the effect of the previous line on CFLAGS.
71
72 # Linker mapfiles
73 MAPFILE = $(GAMMADIR)/make/solaris/makefiles/mapfile-vers
74
75 ifndef USE_GCC
76 # This mapfile is only needed when compiling with dtrace support,
77 # and mustn't be otherwise.
|
1 #
2 # Copyright (c) 1999, 2016, 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
25 # Sets make macros for making optimized version of HotSpot VM
26 # (This is the "product", not the "release" version.)
27
28 # Compiler specific OPT_CFLAGS are passed in from gcc.make, sparcWorks.make
29 OPT_CFLAGS/DEFAULT= $(OPT_CFLAGS)
30 OPT_CFLAGS/BYFILE = $(OPT_CFLAGS/$@)$(OPT_CFLAGS/DEFAULT$(OPT_CFLAGS/$@))
31
32 # Workaround for a bug in dtrace. If ciEnv::post_compiled_method_load_event()
33 # is inlined, the resulting dtrace object file needs a reference to this
34 # function, whose symbol name is too long for dtrace. So disable inlining
35 # for this method for now. (fix this when dtrace bug 6258412 is fixed)
36 ifndef USE_GCC
37 OPT_CFLAGS/ciEnv.o = $(OPT_CFLAGS) -xinline=no%__1cFciEnvbFpost_compiled_method_load_event6MpnHnmethod__v_
38 # The debug flag is added to OPT_CFLAGS, but lost in case of per-file overrides
39 # of OPT_CFLAGS. Restore it here.
40 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
41 OPT_CFLAGS/ciEnv.o += -g0 -xs
42 endif
43 endif
44
45 # Need extra inlining to get oop_ps_push_contents functions to perform well enough.
46 ifndef USE_GCC
47 OPT_CFLAGS/psPromotionManager.o = $(OPT_CFLAGS) -W2,-Ainline:inc=1000
48 # The debug flag is added to OPT_CFLAGS, but lost in case of per-file overrides
49 # of OPT_CFLAGS. Restore it here.
50 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
51 OPT_CFLAGS/psPromotionManager.o += -g0 -xs
52 endif
53 endif
54
55 # (OPT_CFLAGS/SLOWER is also available, to alter compilation of buggy files)
56 ifeq ("${Platform_compiler}", "sparcWorks")
57
58 ifeq ($(COMPILER_REV_NUMERIC), 510)
59 # CC 5.10 has bug XXXXX with -xO4
60 OPT_CFLAGS/jvmtiClassFileReconstituter.o = $(OPT_CFLAGS/O2)
61 # Avoid apparent crash because of corrupted methodHandle in a tail call
62 OPT_CFLAGS/simpleThresholdPolicy.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT)
63 endif # COMPILER_REV_NUMERIC == 510
64
65 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
66 # dtrace cannot handle tail call optimization (6672627, 6693876)
67 OPT_CFLAGS/jni.o = $(OPT_CFLAGS/DEFAULT) $(OPT_CCFLAGS/NO_TAIL_CALL_OPT)
68 # The -g0 -xs flag is added to OPT_CFLAGS in sparcWorks.make, but lost in case of
69 # per-file overrides of OPT_CFLAGS. Restore it here. This is mainly needed
70 # to provide a good baseline to compare the new build against.
71 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
72 OPT_CFLAGS/jni.o += -g0 -xs
73 endif
74 endif # COMPILER_NUMERIC_REV >= 509
75
76 # Workaround SS11 bug 6345274 (all platforms) (Fixed in SS11 patch and SS12)
77 ifeq ($(COMPILER_REV_NUMERIC),508)
78 OPT_CFLAGS/ciTypeFlow.o = $(OPT_CFLAGS/O2)
79 endif # COMPILER_REV_NUMERIC == 508
80
81 endif # Platform_compiler == sparcWorks
82
83 # If you set HOTSPARC_GENERIC=yes, you disable all OPT_CFLAGS settings
84 CFLAGS$(HOTSPARC_GENERIC) += $(OPT_CFLAGS/BYFILE)
85 # Set the environment variable HOTSPARC_GENERIC to "true"
86 # to inhibit the effect of the previous line on CFLAGS.
87
88 # Linker mapfiles
89 MAPFILE = $(GAMMADIR)/make/solaris/makefiles/mapfile-vers
90
91 ifndef USE_GCC
92 # This mapfile is only needed when compiling with dtrace support,
93 # and mustn't be otherwise.
|