hotspot/make/bsd/makefiles/gcc.make
changeset 26172 7ab032af2835
parent 25498 52d596882831
child 26417 c55a863f2a7f
equal deleted inserted replaced
26171:ddd28cb3f2b9 26172:7ab032af2835
   506   endif
   506   endif
   507 endif
   507 endif
   508 
   508 
   509 ifeq ($(USE_CLANG),)
   509 ifeq ($(USE_CLANG),)
   510   # Enable bounds checking.
   510   # Enable bounds checking.
   511   # _FORTIFY_SOURCE appears in GCC 4.0+
       
   512   ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1"
   511   ifeq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) )" "1"
   513     # compile time size bounds checks
   512     # stack smashing checks.
   514     FASTDEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
   513     DEBUG_CFLAGS += -fstack-protector-all --param ssp-buffer-size=1
   515 
       
   516     # and runtime size bounds checks and paranoid stack smashing checks.
       
   517     DEBUG_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all --param ssp-buffer-size=1
       
   518   endif
   514   endif
   519 endif
   515 endif
   520 
   516 
   521 # If we are building HEADLESS, pass on to VM
   517 # If we are building HEADLESS, pass on to VM
   522 # so it can set the java.awt.headless property
   518 # so it can set the java.awt.headless property