comparison make/linux/makefiles/gcc.make @ 11130:90d6c221d4e5

Merge
author jprovino
date Tue, 16 Jul 2013 12:20:08 -0400
parents cc63bcb47cce
children badf4244ceae faf0c78e906b
comparison
equal deleted inserted replaced
11129:16b10327b00d 11130:90d6c221d4e5
212 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
213 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
214 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body 214 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body
215 endif 215 endif
216 216
217 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function 217 WARNING_FLAGS = -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value
218 218
219 ifeq ($(USE_CLANG),) 219 ifeq ($(USE_CLANG),)
220 # 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
221 # 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.
222 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"
348 DEBUG_CFLAGS/ppc = -g 348 DEBUG_CFLAGS/ppc = -g
349 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 349 DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
350 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 350 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
351 ifeq ($(USE_CLANG), true) 351 ifeq ($(USE_CLANG), true)
352 # Clang doesn't understand -gstabs 352 # Clang doesn't understand -gstabs
353 OPT_CFLAGS += -g 353 DEBUG_CFLAGS += -g
354 else 354 else
355 OPT_CFLAGS += -gstabs 355 DEBUG_CFLAGS += -gstabs
356 endif 356 endif
357 endif 357 endif
358 358
359 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 359 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
360 FASTDEBUG_CFLAGS/ia64 = -g 360 FASTDEBUG_CFLAGS/ia64 = -g
363 FASTDEBUG_CFLAGS/ppc = -g 363 FASTDEBUG_CFLAGS/ppc = -g
364 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) 364 FASTDEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH))
365 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),) 365 ifeq ($(FASTDEBUG_CFLAGS/$(BUILDARCH)),)
366 ifeq ($(USE_CLANG), true) 366 ifeq ($(USE_CLANG), true)
367 # Clang doesn't understand -gstabs 367 # Clang doesn't understand -gstabs
368 OPT_CFLAGS += -g 368 FASTDEBUG_CFLAGS += -g
369 else 369 else
370 OPT_CFLAGS += -gstabs 370 FASTDEBUG_CFLAGS += -gstabs
371 endif 371 endif
372 endif 372 endif
373 373
374 OPT_CFLAGS/ia64 = -g 374 OPT_CFLAGS/ia64 = -g
375 OPT_CFLAGS/amd64 = -g 375 OPT_CFLAGS/amd64 = -g