97 endif
98
99 ifneq ($(OPENJDK_TARGET_OS), windows)
100 # NOTE: Windows adlc flags was different in the old build. Is this really
101 # correct?
102
103 # -g makes #line directives in the generated C++ files.
104 ADLCFLAGS += -g
105
106 ADLCFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)=1
107 endif
108
109 # This generates checks in the generated C++ files that _LP64 is correctly
110 # (un)defined when compiling them.
111 ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
112 ADLCFLAGS += -D_LP64=1
113 else
114 ADLCFLAGS += -U_LP64
115 endif
116
117 ##############################################################################
118 # Concatenate all ad source files into a single file, which will be fed to
119 # adlc. Also include a #line directive at the start of every included file
120 # (after the initial header block), stating the original source file name.
121 #
122 # Normally, debugging is done directly on the ad_<arch>*.cpp files, but the
123 # #line directives in those files will be pointing back to <arch>.ad.
124
125 # AD_SRC_ROOTS might have been added to by a custom extension
126 AD_SRC_ROOTS += $(HOTSPOT_TOPDIR)/src
127
128 AD_SRC_FILES := $(call uniq, $(wildcard $(foreach d, $(AD_SRC_ROOTS), \
129 $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/vm/$(HOTSPOT_TARGET_CPU).ad \
130 $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/vm/$(HOTSPOT_TARGET_CPU_ARCH).ad \
131 $d/os_cpu/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH)/vm/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH).ad \
132 )))
133
134 SINGLE_AD_SRCFILE := $(ADLC_SUPPORT_DIR)/all-ad-src.ad
135
136 INSERT_FILENAME_AWK_SCRIPT := \
|
97 endif
98
99 ifneq ($(OPENJDK_TARGET_OS), windows)
100 # NOTE: Windows adlc flags was different in the old build. Is this really
101 # correct?
102
103 # -g makes #line directives in the generated C++ files.
104 ADLCFLAGS += -g
105
106 ADLCFLAGS += -D$(HOTSPOT_TARGET_CPU_DEFINE)=1
107 endif
108
109 # This generates checks in the generated C++ files that _LP64 is correctly
110 # (un)defined when compiling them.
111 ifeq ($(OPENJDK_TARGET_CPU_BITS), 64)
112 ADLCFLAGS += -D_LP64=1
113 else
114 ADLCFLAGS += -U_LP64
115 endif
116
117 ifeq ($(HOTSPOT_TARGET_CPU_ARCH), arm)
118 ADLCFLAGS += -DARM=1
119 endif
120
121 ##############################################################################
122 # Concatenate all ad source files into a single file, which will be fed to
123 # adlc. Also include a #line directive at the start of every included file
124 # (after the initial header block), stating the original source file name.
125 #
126 # Normally, debugging is done directly on the ad_<arch>*.cpp files, but the
127 # #line directives in those files will be pointing back to <arch>.ad.
128
129 # AD_SRC_ROOTS might have been added to by a custom extension
130 AD_SRC_ROOTS += $(HOTSPOT_TOPDIR)/src
131
132 AD_SRC_FILES := $(call uniq, $(wildcard $(foreach d, $(AD_SRC_ROOTS), \
133 $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/vm/$(HOTSPOT_TARGET_CPU).ad \
134 $d/cpu/$(HOTSPOT_TARGET_CPU_ARCH)/vm/$(HOTSPOT_TARGET_CPU_ARCH).ad \
135 $d/os_cpu/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH)/vm/$(HOTSPOT_TARGET_OS)_$(HOTSPOT_TARGET_CPU_ARCH).ad \
136 )))
137
138 SINGLE_AD_SRCFILE := $(ADLC_SUPPORT_DIR)/all-ad-src.ad
139
140 INSERT_FILENAME_AWK_SCRIPT := \
|