comparison hotspot/make/solaris/makefiles/gcc.make @ 26172:7ab032af2835

8047952: Remove _FORTIFY_SOURCE from fastdebug and slowdebug builds Reviewed-by: dholmes
author mduigou
date Wed, 13 Aug 2014 23:33:33 +0000
parents 52d596882831
children 61e906cecd81
comparison
equal deleted inserted replaced
17:9139170c49eb 18:a721a11dfd1f
238 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) 238 ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),)
239 DEBUG_CFLAGS += -gstabs 239 DEBUG_CFLAGS += -gstabs
240 endif 240 endif
241 241
242 # Enable bounds checking. 242 # Enable bounds checking.
243 # _FORTIFY_SOURCE appears in GCC 4.0+
244 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1" 243 ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1"
245 # compile time size bounds checks 244 # stack smashing checks.
246 FASTDEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 245 DEBUG_CFLAGS += -fstack-protector-all --param ssp-buffer-size=1
247 246 endif
248 # and runtime size bounds checks and paranoid stack smashing checks.
249 DEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all --param ssp-buffer-size=1
250 endif