< prev index next >

make/autoconf/flags-cflags.m4

Print this page
rev 51703 : 8221318: [11u] do not disable c99 on Solaris


 507 
 508 
 509   elif test "x$TOOLCHAIN_TYPE" = xclang; then
 510     # Restrict the debug information created by Clang to avoid
 511     # too big object files and speed the build up a little bit
 512     # (see http://llvm.org/bugs/show_bug.cgi?id=7554)
 513     TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info"
 514 
 515     # In principle the stack alignment below is cpu- and ABI-dependent and
 516     # should agree with values of StackAlignmentInBytes in various
 517     # src/hotspot/cpu/*/globalDefinitions_*.hpp files, but this value currently
 518     # works for all platforms.
 519     TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -mno-omit-leaf-frame-pointer -mstack-alignment=16"
 520 
 521     if test "x$OPENJDK_TARGET_OS" = xlinux; then
 522       TOOLCHAIN_CFLAGS_JDK="-pipe"
 523       TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
 524     fi
 525   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
 526     TOOLCHAIN_CFLAGS_JDK="-mt"
 527     TOOLCHAIN_CFLAGS_JDK_CONLY="-xc99=%none -xCC -Xa -v -W0,-noglobal" # C only
 528     TOOLCHAIN_CFLAGS_JDK_CXXONLY="-features=no%except -norunpath -xnolib" # CXX only
 529     TOOLCHAIN_CFLAGS_JVM="-template=no%extdef -features=no%split_init \
 530         -library=stlport4 -mt -features=no%except"
 531     if test "x$DEBUG_LEVEL" = xslowdebug; then
 532       # Previously -g was used instead of -g0 for slowdebug; this is equivalent
 533       # to setting +d.
 534       TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM +d"
 535     fi
 536 
 537   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
 538     TOOLCHAIN_CFLAGS_JDK="-qchars=signed -qfullpath -qsaveopt"  # add on both CFLAGS
 539     TOOLCHAIN_CFLAGS_JVM="-qtune=balanced \
 540         -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \
 541         -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno"
 542   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 543     TOOLCHAIN_CFLAGS_JVM="-nologo -MD -MP"
 544     TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:wchar_t-"
 545   fi
 546 
 547   # CFLAGS WARNINGS STUFF




 507 
 508 
 509   elif test "x$TOOLCHAIN_TYPE" = xclang; then
 510     # Restrict the debug information created by Clang to avoid
 511     # too big object files and speed the build up a little bit
 512     # (see http://llvm.org/bugs/show_bug.cgi?id=7554)
 513     TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info"
 514 
 515     # In principle the stack alignment below is cpu- and ABI-dependent and
 516     # should agree with values of StackAlignmentInBytes in various
 517     # src/hotspot/cpu/*/globalDefinitions_*.hpp files, but this value currently
 518     # works for all platforms.
 519     TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -mno-omit-leaf-frame-pointer -mstack-alignment=16"
 520 
 521     if test "x$OPENJDK_TARGET_OS" = xlinux; then
 522       TOOLCHAIN_CFLAGS_JDK="-pipe"
 523       TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
 524     fi
 525   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
 526     TOOLCHAIN_CFLAGS_JDK="-mt"
 527     TOOLCHAIN_CFLAGS_JDK_CONLY="-xCC -Xa -v -W0,-noglobal" # C only
 528     TOOLCHAIN_CFLAGS_JDK_CXXONLY="-features=no%except -norunpath -xnolib" # CXX only
 529     TOOLCHAIN_CFLAGS_JVM="-template=no%extdef -features=no%split_init \
 530         -library=stlport4 -mt -features=no%except"
 531     if test "x$DEBUG_LEVEL" = xslowdebug; then
 532       # Previously -g was used instead of -g0 for slowdebug; this is equivalent
 533       # to setting +d.
 534       TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM +d"
 535     fi
 536 
 537   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
 538     TOOLCHAIN_CFLAGS_JDK="-qchars=signed -qfullpath -qsaveopt"  # add on both CFLAGS
 539     TOOLCHAIN_CFLAGS_JVM="-qtune=balanced \
 540         -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \
 541         -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno"
 542   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 543     TOOLCHAIN_CFLAGS_JVM="-nologo -MD -MP"
 544     TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:wchar_t-"
 545   fi
 546 
 547   # CFLAGS WARNINGS STUFF


< prev index next >