annotate make/windows/makefiles/adlc.make @ 12176:88c255656030

8016155: SIGBUS when running Kitchensink with ParallelScavenge and ParallelOld Summary: When using NUMA and large pages we need to ease the requirement on which node the memory should be allocated on. To avoid the SIGBUS we now use the memory policy MPOL_PREFERRED, which prefers a certain node, instead of MPOL_BIND, which requires a certain node. Reviewed-by: jmasa, pliden Contributed-by: stefan.johansson@oracle.com
author mgerdin
date Thu, 22 Aug 2013 10:50:41 +0200
parents ce8969c36762
children de6a9e811145
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #
6842
b9a9ed0f8eeb 7197424: update copyright year to match last edit in jdk8 hotspot repository
mikael
parents: 4891
diff changeset
2 # Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
4 #
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
6 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
8 #
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
14 #
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
16 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
18 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 844
diff changeset
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 844
diff changeset
20 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 844
diff changeset
21 # questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
22 #
a61af66fc99e Initial load
duke
parents:
diff changeset
23 #
a61af66fc99e Initial load
duke
parents:
diff changeset
24
a61af66fc99e Initial load
duke
parents:
diff changeset
25
a61af66fc99e Initial load
duke
parents:
diff changeset
26 # Rules for building adlc.exe
a61af66fc99e Initial load
duke
parents:
diff changeset
27
a61af66fc99e Initial load
duke
parents:
diff changeset
28 # Need exception handling support here
a61af66fc99e Initial load
duke
parents:
diff changeset
29 # $(MS_RUNTIME_OPTION) ( with /D_STATIC_CPPLIB)
a61af66fc99e Initial load
duke
parents:
diff changeset
30 # causes adlc.exe to link with the static
a61af66fc99e Initial load
duke
parents:
diff changeset
31 # multithread Standard C++ library (libcpmt.lib) instead of
a61af66fc99e Initial load
duke
parents:
diff changeset
32 # the dynamic version (msvcprt.lib), which is not included
a61af66fc99e Initial load
duke
parents:
diff changeset
33 # in any of the free tools.
a61af66fc99e Initial load
duke
parents:
diff changeset
34 EXH_FLAGS=$(GX_OPTION) $(MS_RUNTIME_OPTION)
a61af66fc99e Initial load
duke
parents:
diff changeset
35
a61af66fc99e Initial load
duke
parents:
diff changeset
36 !ifdef ALT_ADLC_PATH
a61af66fc99e Initial load
duke
parents:
diff changeset
37 ADLC=$(ALT_ADLC_PATH)\adlc.exe
a61af66fc99e Initial load
duke
parents:
diff changeset
38 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
39 ADLC=adlc
a61af66fc99e Initial load
duke
parents:
diff changeset
40 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
41
a61af66fc99e Initial load
duke
parents:
diff changeset
42 !ifdef LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
43 ADLCFLAGS=-q -T -D_LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
44 !else
a61af66fc99e Initial load
duke
parents:
diff changeset
45 ADLCFLAGS=-q -T -U_LP64
a61af66fc99e Initial load
duke
parents:
diff changeset
46 !endif
a61af66fc99e Initial load
duke
parents:
diff changeset
47
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4761
diff changeset
48 ADLC_CXX_FLAGS=$(CXX_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE
0
a61af66fc99e Initial load
duke
parents:
diff changeset
49
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4761
diff changeset
50 CXX_INCLUDE_DIRS=\
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
51 /I "..\generated" \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
52 /I "$(WorkSpace)\src\share\vm" \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
53 /I "$(WorkSpace)\src\os\windows\vm" \
0
a61af66fc99e Initial load
duke
parents:
diff changeset
54 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm"
a61af66fc99e Initial load
duke
parents:
diff changeset
55
4761
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
56 !if "$(Platform_arch_model)" == "$(Platform_arch)"
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
57 SOURCES_AD=\
12024
ce8969c36762 8022475: Remove unneeded ad-files
adlertz
parents: 6842
diff changeset
58 $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad
4761
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
59 !else
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
60 SOURCES_AD=\
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
61 $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \
12024
ce8969c36762 8022475: Remove unneeded ad-files
adlertz
parents: 6842
diff changeset
62 $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch).ad
4761
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
63 !endif
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
64
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
65 # NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_DIR
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
66 # and ProjectCreatorIDEOptions in projectcreator.make.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
67 GENERATED_NAMES=\
a61af66fc99e Initial load
duke
parents:
diff changeset
68 ad_$(Platform_arch_model).cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
69 ad_$(Platform_arch_model).hpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
70 ad_$(Platform_arch_model)_clone.cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
71 ad_$(Platform_arch_model)_expand.cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
72 ad_$(Platform_arch_model)_format.cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
73 ad_$(Platform_arch_model)_gen.cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
74 ad_$(Platform_arch_model)_misc.cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
75 ad_$(Platform_arch_model)_peephole.cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
76 ad_$(Platform_arch_model)_pipeline.cpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
77 adGlobals_$(Platform_arch_model).hpp \
a61af66fc99e Initial load
duke
parents:
diff changeset
78 dfa_$(Platform_arch_model).cpp
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 # NOTE! This must be kept in sync with GENERATED_NAMES
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
81 GENERATED_NAMES_IN_DIR=\
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
82 $(AdlcOutDir)\ad_$(Platform_arch_model).cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
83 $(AdlcOutDir)\ad_$(Platform_arch_model).hpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
84 $(AdlcOutDir)\ad_$(Platform_arch_model)_clone.cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
85 $(AdlcOutDir)\ad_$(Platform_arch_model)_expand.cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
86 $(AdlcOutDir)\ad_$(Platform_arch_model)_format.cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
87 $(AdlcOutDir)\ad_$(Platform_arch_model)_gen.cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
88 $(AdlcOutDir)\ad_$(Platform_arch_model)_misc.cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
89 $(AdlcOutDir)\ad_$(Platform_arch_model)_peephole.cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
90 $(AdlcOutDir)\ad_$(Platform_arch_model)_pipeline.cpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
91 $(AdlcOutDir)\adGlobals_$(Platform_arch_model).hpp \
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
92 $(AdlcOutDir)\dfa_$(Platform_arch_model).cpp
0
a61af66fc99e Initial load
duke
parents:
diff changeset
93
a61af66fc99e Initial load
duke
parents:
diff changeset
94 {$(WorkSpace)\src\share\vm\adlc}.cpp.obj::
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4761
diff changeset
95 $(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $<
0
a61af66fc99e Initial load
duke
parents:
diff changeset
96
a61af66fc99e Initial load
duke
parents:
diff changeset
97 {$(WorkSpace)\src\share\vm\opto}.cpp.obj::
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4761
diff changeset
98 $(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $<
0
a61af66fc99e Initial load
duke
parents:
diff changeset
99
a61af66fc99e Initial load
duke
parents:
diff changeset
100 adlc.exe: main.obj adlparse.obj archDesc.obj arena.obj dfa.obj dict2.obj filebuff.obj \
a61af66fc99e Initial load
duke
parents:
diff changeset
101 forms.obj formsopt.obj formssel.obj opcodes.obj output_c.obj output_h.obj
4891
719f7007c8e8 7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents: 4761
diff changeset
102 $(LD) $(LD_FLAGS) /subsystem:console /out:$@ $**
427
3c07cda72b7d 6764892: VS2008 changes required to compile hotspot sources
tbell
parents: 196
diff changeset
103 !if "$(MT)" != ""
3c07cda72b7d 6764892: VS2008 changes required to compile hotspot sources
tbell
parents: 196
diff changeset
104 # The previous link command created a .manifest file that we want to
3c07cda72b7d 6764892: VS2008 changes required to compile hotspot sources
tbell
parents: 196
diff changeset
105 # insert into the linked artifact so we do not need to track it
3c07cda72b7d 6764892: VS2008 changes required to compile hotspot sources
tbell
parents: 196
diff changeset
106 # separately. Use ";#2" for .dll and ";#1" for .exe:
3c07cda72b7d 6764892: VS2008 changes required to compile hotspot sources
tbell
parents: 196
diff changeset
107 $(MT) /manifest $@.manifest /outputresource:$@;#1
3c07cda72b7d 6764892: VS2008 changes required to compile hotspot sources
tbell
parents: 196
diff changeset
108 !endif
0
a61af66fc99e Initial load
duke
parents:
diff changeset
109
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
110 $(GENERATED_NAMES_IN_DIR): $(Platform_arch_model).ad adlc.exe
0
a61af66fc99e Initial load
duke
parents:
diff changeset
111 rm -f $(GENERATED_NAMES)
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
112 if exist $(AdlcOutDir) rmdir /s /q $(AdlcOutDir)
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
113 mkdir $(AdlcOutDir)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
114 $(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad
1972
f95d63e2154a 6989984: Use standard include model for Hospot
stefank
parents: 1552
diff changeset
115 mv $(GENERATED_NAMES) $(AdlcOutDir)/
0
a61af66fc99e Initial load
duke
parents:
diff changeset
116
4761
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
117 $(Platform_arch_model).ad: $(SOURCES_AD)
0
a61af66fc99e Initial load
duke
parents:
diff changeset
118 rm -f $(Platform_arch_model).ad
4761
65149e74c706 7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents: 2027
diff changeset
119 cat $(SOURCES_AD) >$(Platform_arch_model).ad