make/autoconf/flags-cflags.m4
changeset 59287 c04fa10636fd
parent 59281 eef0bf57357c
equal deleted inserted replaced
59286:a2441ac23eeb 59287:c04fa10636fd
   530   fi
   530   fi
   531 
   531 
   532   if test "x$TOOLCHAIN_TYPE" = xgcc; then
   532   if test "x$TOOLCHAIN_TYPE" = xgcc; then
   533     TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fcheck-new -fstack-protector"
   533     TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fcheck-new -fstack-protector"
   534     TOOLCHAIN_CFLAGS_JDK="-pipe -fstack-protector"
   534     TOOLCHAIN_CFLAGS_JDK="-pipe -fstack-protector"
       
   535     # reduce lib size on s390x in link step, this needs also special compile flags
       
   536     if test "x$OPENJDK_TARGET_CPU" = xs390x; then
       
   537       TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -ffunction-sections -fdata-sections"
       
   538       TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -ffunction-sections -fdata-sections"
       
   539     fi
   535     # technically NOT for CXX (but since this gives *worse* performance, use
   540     # technically NOT for CXX (but since this gives *worse* performance, use
   536     # no-strict-aliasing everywhere!)
   541     # no-strict-aliasing everywhere!)
   537     TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing"
   542     TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing"
   538 
   543 
   539   elif test "x$TOOLCHAIN_TYPE" = xclang; then
   544   elif test "x$TOOLCHAIN_TYPE" = xclang; then