comparison make/linux/makefiles/gcc.make @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents 28f281e8de1d
children 52b4284cb496
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
179 ARCHFLAG/arm = -fsigned-char 179 ARCHFLAG/arm = -fsigned-char
180 ARCHFLAG/zero = $(ZERO_ARCHFLAG) 180 ARCHFLAG/zero = $(ZERO_ARCHFLAG)
181 ifndef E500V2 181 ifndef E500V2
182 ARCHFLAG/ppc = -mcpu=powerpc 182 ARCHFLAG/ppc = -mcpu=powerpc
183 endif 183 endif
184 ARCHFLAG/ppc64 = -m64
185 184
186 CFLAGS += $(ARCHFLAG) 185 CFLAGS += $(ARCHFLAG)
187 AOUT_FLAGS += $(ARCHFLAG) 186 AOUT_FLAGS += $(ARCHFLAG)
188 LFLAGS += $(ARCHFLAG) 187 LFLAGS += $(ARCHFLAG)
189 ASFLAGS += $(ARCHFLAG) 188 ASFLAGS += $(ARCHFLAG)
213 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare 212 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare
214 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess 213 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess
215 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body 214 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
216 endif 215 endif
217 216
218 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wno-error=format-nonliteral 217 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value
219 218
220 ifeq ($(USE_CLANG),) 219 ifeq ($(USE_CLANG),)
221 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit 220 # Since GCC 4.3, -Wconversion has changed its meanings to warn these implicit
222 # conversions which might affect the values. Only enable it in earlier versions. 221 # conversions which might affect the values. Only enable it in earlier versions.
223 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0" 222 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 4 \) \| \( \( $(CC_VER_MAJOR) = 4 \) \& \( $(CC_VER_MINOR) \>= 3 \) \))" "0"
345 # Note: The Itanium gcc compiler crashes when using -gstabs. 344 # Note: The Itanium gcc compiler crashes when using -gstabs.
346 DEBUG_CFLAGS/ia64 = -g 345 DEBUG_CFLAGS/ia64 = -g
347 DEBUG_CFLAGS/amd64 = -g 346 DEBUG_CFLAGS/amd64 = -g
348 DEBUG_CFLAGS/arm = -g 347 DEBUG_CFLAGS/arm = -g
349 DEBUG_CFLAGS/ppc = -g 348 DEBUG_CFLAGS/ppc = -g
350 DEBUG_CFLAGS/ppc64 = -g
351 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 349 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
352 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 350 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
353 ifeq ($(USE_CLANG), true) 351 ifeq ($(USE_CLANG), true)
354 # Clang doesn't understand -gstabs 352 # Clang doesn't understand -gstabs
355 DEBUG_CFLAGS += -g 353 DEBUG_CFLAGS += -g
361 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 359 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
362 FASTDEBUG_CFLAGS/ia64 = -g 360 FASTDEBUG_CFLAGS/ia64 = -g
363 FASTDEBUG_CFLAGS/amd64 = -g 361 FASTDEBUG_CFLAGS/amd64 = -g
364 FASTDEBUG_CFLAGS/arm = -g 362 FASTDEBUG_CFLAGS/arm = -g
365 FASTDEBUG_CFLAGS/ppc = -g 363 FASTDEBUG_CFLAGS/ppc = -g
366 FASTDEBUG_CFLAGS/ppc64 = -g
367 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 364 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
368 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) 365 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
369 ifeq ($(USE_CLANG), true) 366 ifeq ($(USE_CLANG), true)
370 # Clang doesn't understand -gstabs 367 # Clang doesn't understand -gstabs
371 FASTDEBUG_CFLAGS += -g 368 FASTDEBUG_CFLAGS += -g
376 373
377 OPT_CFLAGS/ia64 = -g 374 OPT_CFLAGS/ia64 = -g
378 OPT_CFLAGS/amd64 = -g 375 OPT_CFLAGS/amd64 = -g
379 OPT_CFLAGS/arm = -g 376 OPT_CFLAGS/arm = -g
380 OPT_CFLAGS/ppc = -g 377 OPT_CFLAGS/ppc = -g
381 OPT_CFLAGS/ppc64 = -g
382 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH)) 378 OPT_CFLAGS += $(OPT_CFLAGS/$(BUILDARCH))
383 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),) 379 ifeq ($(OPT_CFLAGS/$(BUILDARCH)),)
384 ifeq ($(USE_CLANG), true) 380 ifeq ($(USE_CLANG), true)
385 # Clang doesn't understand -gstabs 381 # Clang doesn't understand -gstabs
386 OPT_CFLAGS += -g 382 OPT_CFLAGS += -g