18 # |
18 # |
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
20 # or visit www.oracle.com if you need additional information or have any |
21 # questions. |
21 # questions. |
22 # |
22 # |
|
23 # |
|
24 |
|
25 # |
|
26 # This file has been modified by Loongson Technology in 2015. These |
|
27 # modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
28 # available on the same license terms set forth above. |
23 # |
29 # |
24 |
30 |
25 #------------------------------------------------------------------------ |
31 #------------------------------------------------------------------------ |
26 # CC, CXX & AS |
32 # CC, CXX & AS |
27 |
33 |
175 ARCHFLAG/amd64 = -m64 $(STACK_ALIGNMENT_OPT) |
181 ARCHFLAG/amd64 = -m64 $(STACK_ALIGNMENT_OPT) |
176 ARCHFLAG/ia64 = |
182 ARCHFLAG/ia64 = |
177 ARCHFLAG/sparc = -m32 -mcpu=v9 |
183 ARCHFLAG/sparc = -m32 -mcpu=v9 |
178 ARCHFLAG/sparcv9 = -m64 -mcpu=v9 |
184 ARCHFLAG/sparcv9 = -m64 -mcpu=v9 |
179 ARCHFLAG/arm = -fsigned-char |
185 ARCHFLAG/arm = -fsigned-char |
|
186 ARCHFLAG/mips64 = -mabi=64 |
180 ARCHFLAG/zero = $(ZERO_ARCHFLAG) |
187 ARCHFLAG/zero = $(ZERO_ARCHFLAG) |
181 ifndef E500V2 |
188 ifndef E500V2 |
182 ARCHFLAG/ppc = -mcpu=powerpc |
189 ARCHFLAG/ppc = -mcpu=powerpc |
183 endif |
190 endif |
184 ARCHFLAG/ppc64 = -m64 |
191 ARCHFLAG/ppc64 = -m64 |
203 else |
210 else |
204 CFLAGS += -pipe |
211 CFLAGS += -pipe |
205 endif |
212 endif |
206 |
213 |
207 # Compiler warnings are treated as errors |
214 # Compiler warnings are treated as errors |
208 WARNINGS_ARE_ERRORS = -Werror |
215 #compiler disassembler_mips.cpp:193:"if WARNINGS_ARE_ERRORS =, here from error to warning ": deprecated conversion from string constant to 'char*' |
|
216 #WARNINGS_ARE_ERRORS = -Werror |
209 |
217 |
210 ifeq ($(USE_CLANG), true) |
218 ifeq ($(USE_CLANG), true) |
211 # However we need to clean the code up before we can unrestrictedly enable this option with Clang |
219 # However we need to clean the code up before we can unrestrictedly enable this option with Clang |
212 WARNINGS_ARE_ERRORS += -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses |
220 WARNINGS_ARE_ERRORS += -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses |
213 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare |
221 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare |
343 # Change this back to "-g" if you want the most expressive format. |
351 # Change this back to "-g" if you want the most expressive format. |
344 # (warning: that could easily inflate libjvm.so to 150M!) |
352 # (warning: that could easily inflate libjvm.so to 150M!) |
345 # Note: The Itanium gcc compiler crashes when using -gstabs. |
353 # Note: The Itanium gcc compiler crashes when using -gstabs. |
346 DEBUG_CFLAGS/ia64 = -g |
354 DEBUG_CFLAGS/ia64 = -g |
347 DEBUG_CFLAGS/amd64 = -g |
355 DEBUG_CFLAGS/amd64 = -g |
|
356 DEBUG_CFLAGS/mips64 = -g |
348 DEBUG_CFLAGS/arm = -g |
357 DEBUG_CFLAGS/arm = -g |
349 DEBUG_CFLAGS/ppc = -g |
358 DEBUG_CFLAGS/ppc = -g |
350 DEBUG_CFLAGS/ppc64 = -g |
359 DEBUG_CFLAGS/ppc64 = -g |
351 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) |
360 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) |
352 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) |
361 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) |
359 endif |
368 endif |
360 |
369 |
361 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
370 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) |
362 FASTDEBUG_CFLAGS/ia64 = -g |
371 FASTDEBUG_CFLAGS/ia64 = -g |
363 FASTDEBUG_CFLAGS/amd64 = -g |
372 FASTDEBUG_CFLAGS/amd64 = -g |
|
373 FASTDEBUG_CFLAGS/mips64 = -g |
364 FASTDEBUG_CFLAGS/arm = -g |
374 FASTDEBUG_CFLAGS/arm = -g |
365 FASTDEBUG_CFLAGS/ppc = -g |
375 FASTDEBUG_CFLAGS/ppc = -g |
366 FASTDEBUG_CFLAGS/ppc64 = -g |
376 FASTDEBUG_CFLAGS/ppc64 = -g |
367 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) |
377 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) |
368 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) |
378 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) |