542 # Restrict the debug information created by Clang to avoid
543 # too big object files and speed the build up a little bit
544 # (see http://llvm.org/bugs/show_bug.cgi?id=7554)
545 TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info"
546
547 # In principle the stack alignment below is cpu- and ABI-dependent and
548 # should agree with values of StackAlignmentInBytes in various
549 # src/hotspot/cpu/*/globalDefinitions_*.hpp files, but this value currently
550 # works for all platforms.
551 TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -mno-omit-leaf-frame-pointer -mstack-alignment=16"
552
553 if test "x$OPENJDK_TARGET_OS" = xlinux; then
554 TOOLCHAIN_CFLAGS_JDK="-pipe"
555 TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
556 fi
557 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
558 TOOLCHAIN_FLAGS="-errtags -errfmt"
559 TOOLCHAIN_CFLAGS="-errshort=tags"
560
561 TOOLCHAIN_CFLAGS_JDK="-mt $TOOLCHAIN_FLAGS"
562 TOOLCHAIN_CFLAGS_JDK_CONLY="-xc99=%none -xCC -Xa -W0,-noglobal $TOOLCHAIN_CFLAGS" # C only
563 TOOLCHAIN_CFLAGS_JDK_CXXONLY="-features=no%except -norunpath -xnolib" # CXX only
564 TOOLCHAIN_CFLAGS_JVM="-template=no%extdef -features=no%split_init \
565 -library=stlport4 -mt -features=no%except $TOOLCHAIN_FLAGS"
566 if test "x$DEBUG_LEVEL" = xslowdebug; then
567 # Previously -g was used instead of -g0 for slowdebug; this is equivalent
568 # to setting +d.
569 TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM +d"
570 fi
571
572 elif test "x$TOOLCHAIN_TYPE" = xxlc; then
573 # Suggested additions: -qsrcmsg to get improved error reporting
574 TOOLCHAIN_CFLAGS_JDK="-qchars=signed -qfullpath -qsaveopt" # add on both CFLAGS
575 TOOLCHAIN_CFLAGS_JVM="-qtune=balanced \
576 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \
577 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno"
578 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
579 TOOLCHAIN_CFLAGS_JVM="-nologo -MD -MP"
580 TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:wchar_t-"
581 fi
582
|
542 # Restrict the debug information created by Clang to avoid
543 # too big object files and speed the build up a little bit
544 # (see http://llvm.org/bugs/show_bug.cgi?id=7554)
545 TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -flimit-debug-info"
546
547 # In principle the stack alignment below is cpu- and ABI-dependent and
548 # should agree with values of StackAlignmentInBytes in various
549 # src/hotspot/cpu/*/globalDefinitions_*.hpp files, but this value currently
550 # works for all platforms.
551 TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -mno-omit-leaf-frame-pointer -mstack-alignment=16"
552
553 if test "x$OPENJDK_TARGET_OS" = xlinux; then
554 TOOLCHAIN_CFLAGS_JDK="-pipe"
555 TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX
556 fi
557 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
558 TOOLCHAIN_FLAGS="-errtags -errfmt"
559 TOOLCHAIN_CFLAGS="-errshort=tags"
560
561 TOOLCHAIN_CFLAGS_JDK="-mt $TOOLCHAIN_FLAGS"
562 TOOLCHAIN_CFLAGS_JDK_CONLY="-xCC -Xa -W0,-noglobal $TOOLCHAIN_CFLAGS" # C only
563 TOOLCHAIN_CFLAGS_JDK_CXXONLY="-features=no%except -norunpath -xnolib" # CXX only
564 TOOLCHAIN_CFLAGS_JVM="-template=no%extdef -features=no%split_init \
565 -library=stlport4 -mt -features=no%except $TOOLCHAIN_FLAGS"
566 if test "x$DEBUG_LEVEL" = xslowdebug; then
567 # Previously -g was used instead of -g0 for slowdebug; this is equivalent
568 # to setting +d.
569 TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM +d"
570 fi
571
572 elif test "x$TOOLCHAIN_TYPE" = xxlc; then
573 # Suggested additions: -qsrcmsg to get improved error reporting
574 TOOLCHAIN_CFLAGS_JDK="-qchars=signed -qfullpath -qsaveopt" # add on both CFLAGS
575 TOOLCHAIN_CFLAGS_JVM="-qtune=balanced \
576 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \
577 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno"
578 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
579 TOOLCHAIN_CFLAGS_JVM="-nologo -MD -MP"
580 TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:wchar_t-"
581 fi
582
|