make/linux/makefiles/gcc.make

changeset 6876
710a3c8b516e
parent 6472
2b8e28fdf503
parent 183
f950ea9eb769
child 7994
04ff2f6cd0eb
equal deleted inserted replaced
6875:28b50d07f6f8 6876:710a3c8b516e
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)),)
374 endif 384 endif
375 endif 385 endif
376 386
377 OPT_CFLAGS/ia64 = -g 387 OPT_CFLAGS/ia64 = -g
378 OPT_CFLAGS/amd64 = -g 388 OPT_CFLAGS/amd64 = -g
389 OPT_CFLAGS/mips64 = -g
379 OPT_CFLAGS/arm = -g 390 OPT_CFLAGS/arm = -g
380 OPT_CFLAGS/ppc = -g 391 OPT_CFLAGS/ppc = -g
381 OPT_CFLAGS/ppc64 = -g 392 OPT_CFLAGS/ppc64 = -g
382 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH)) 393 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
383 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),) 394 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)

mercurial