hotspot/make/solaris/makefiles/gcc.make
changeset 26172 7ab032af2835
parent 25498 52d596882831
child 27875 61e906cecd81
equal deleted inserted replaced
26171:ddd28cb3f2b9 26172:7ab032af2835
   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