common/autoconf/flags.m4
changeset 41646 0342650c5a78
parent 41040 7b919a4497ff
child 41650 00b6f4e0fa61
equal deleted inserted replaced
41268:256be8814844 41646:0342650c5a78
   757         ;;
   757         ;;
   758       ppc )
   758       ppc )
   759         # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing
   759         # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing
   760         $2CFLAGS_JDK="${$2CFLAGS_JDK} -fno-strict-aliasing"
   760         $2CFLAGS_JDK="${$2CFLAGS_JDK} -fno-strict-aliasing"
   761         ;;
   761         ;;
       
   762       s390 )
       
   763         $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10"
       
   764         $2CFLAGS_JDK="${$2CFLAGS_JDK} -fno-strict-aliasing"
       
   765         ;;
   762       * )
   766       * )
   763         $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer"
   767         $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer"
   764         $2CFLAGS_JDK="${$2CFLAGS_JDK} -fno-strict-aliasing"
   768         $2CFLAGS_JDK="${$2CFLAGS_JDK} -fno-strict-aliasing"
   765         ;;
   769         ;;
   766     esac
   770     esac
   937       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string"
   941       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string"
   938       # Little endian machine uses ELFv2 ABI.
   942       # Little endian machine uses ELFv2 ABI.
   939       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DABI_ELFv2"
   943       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DABI_ELFv2"
   940       # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
   944       # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI.
   941       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -mcpu=power7 -mtune=power8"
   945       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -mcpu=power7 -mtune=power8"
       
   946     fi
       
   947   elif test "x$OPENJDK_$1_CPU" = xs390x; then
       
   948     if test "x$OPENJDK_$1_OS" = xlinux; then
       
   949       $2JVM_CFLAGS="[$]$2JVM_CFLAGS -mbackchain -march=z10"
   942     fi
   950     fi
   943   fi
   951   fi
   944 
   952 
   945   if test "x$OPENJDK_$1_CPU_ENDIAN" = xlittle; then
   953   if test "x$OPENJDK_$1_CPU_ENDIAN" = xlittle; then
   946     $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DVM_LITTLE_ENDIAN"
   954     $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DVM_LITTLE_ENDIAN"