@@ -77,12 +77,6 @@ AC_DEFUN([FLAGS_SETUP_SHARED_LIBS],
7777 fi
7878 fi
7979
80- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
81- SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry"
82- SET_EXECUTABLE_ORIGIN=""
83- SET_SHARED_LIBRARY_ORIGIN=''
84- SET_SHARED_LIBRARY_NAME=''
85-
8680 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
8781 SHARED_LIBRARY_FLAGS="-dll"
8882 SET_EXECUTABLE_ORIGIN=''
@@ -152,8 +146,6 @@ AC_DEFUN([FLAGS_SETUP_DEBUG_SYMBOLS],
152146
153147 CFLAGS_DEBUG_SYMBOLS="-g ${GDWARF_FLAGS}"
154148 ASFLAGS_DEBUG_SYMBOLS="-g"
155- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
156- CFLAGS_DEBUG_SYMBOLS="-g1"
157149 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
158150 CFLAGS_DEBUG_SYMBOLS="-Z7"
159151 fi
@@ -219,11 +211,7 @@ AC_DEFUN([DEBUG_PREFIX_MAP_GCC_INCLUDE_PATHS],
219211AC_DEFUN ( [ FLAGS_SETUP_WARNINGS] ,
220212[
221213 # Set default value.
222- if test "x$TOOLCHAIN_TYPE" != xxlc; then
223- WARNINGS_AS_ERRORS_DEFAULT=true
224- else
225- WARNINGS_AS_ERRORS_DEFAULT=false
226- fi
214+ WARNINGS_AS_ERRORS_DEFAULT=true
227215
228216 UTIL_ARG_ENABLE(NAME: warnings-as-errors, DEFAULT: $WARNINGS_AS_ERRORS_DEFAULT,
229217 RESULT: WARNINGS_AS_ERRORS,
@@ -278,15 +266,6 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
278266 # false positives.
279267 DISABLED_WARNINGS="unknown-warning-option unused-parameter"
280268 ;;
281-
282- xlc)
283- DISABLE_WARNING_PREFIX="-Wno-"
284- CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w"
285-
286- # Possibly a better subset than "all" is "lan:trx:ret:zea:cmp:ret"
287- WARNINGS_ENABLE_ALL="-qinfo=all -qformat=all"
288- DISABLED_WARNINGS=""
289- ;;
290269 esac
291270 AC_SUBST ( DISABLE_WARNING_PREFIX )
292271 AC_SUBST ( BUILD_CC_DISABLE_WARNING_PREFIX )
@@ -360,15 +339,6 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
360339 C_O_FLAG_DEBUG_JVM="${C_O_FLAG_DEBUG_JVM} ${DISABLE_FORTIFY_CFLAGS}"
361340 C_O_FLAG_NONE="${C_O_FLAG_NONE} ${DISABLE_FORTIFY_CFLAGS}"
362341 fi
363- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
364- C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue"
365- C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue"
366- C_O_FLAG_HI="-O3 -qinline -qinlglue"
367- C_O_FLAG_NORM="-O2"
368- C_O_FLAG_DEBUG="-qnoopt"
369- # FIXME: Value below not verified.
370- C_O_FLAG_DEBUG_JVM=""
371- C_O_FLAG_NONE="-qnoopt"
372342 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
373343 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-"
374344 C_O_FLAG_HIGHEST="-O2"
@@ -512,13 +482,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
512482 else
513483 DEBUG_CFLAGS_JDK="-DDEBUG"
514484
515- if test "x$TOOLCHAIN_TYPE" = xxlc; then
516- # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows.
517- # Hotspot now overflows its 64K TOC (currently only for debug),
518- # so for debug we build with '-qpic=large -bbigtoc'.
519- DEBUG_CFLAGS_JVM="-qpic=large"
520- fi
521-
522485 if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang ; then
523486 INIT_PATTERN_FLAG="-ftrivial-auto-var-init=pattern"
524487 FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ $INIT_PATTERN_FLAG] ,
@@ -545,9 +508,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
545508 ALWAYS_DEFINES_JVM="-D_GNU_SOURCE -D_REENTRANT"
546509 elif test "x$TOOLCHAIN_TYPE" = xclang; then
547510 ALWAYS_DEFINES_JVM="-D_GNU_SOURCE"
548- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
549- ALWAYS_DEFINES_JVM="-D_REENTRANT"
550- ALWAYS_DEFINES_JDK="-D_GNU_SOURCE -D_REENTRANT -DSTDC"
551511 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
552512 # _WIN32_WINNT=0x0602 means access APIs for Windows 8 and above. See
553513 # https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170
@@ -612,12 +572,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
612572
613573 TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK -fvisibility=hidden -fstack-protector"
614574
615- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
616- # Suggested additions: -qsrcmsg to get improved error reporting
617- # set -qtbtable=full for a better traceback table/better stacks in hs_err when xlc16 is used
618- TOOLCHAIN_CFLAGS_JDK="-qtbtable=full -qchars=signed -qfullpath -qsaveopt -qstackprotect" # add on both CFLAGS
619- TOOLCHAIN_CFLAGS_JVM="-qtbtable=full -qtune=balanced -fno-exceptions \
620- -qalias=noansi -qstrict -qtls=default -qnortti -qnoeh -qignerrno -qstackprotect"
621575 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
622576 TOOLCHAIN_CFLAGS_JVM="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -MP"
623577 TOOLCHAIN_CFLAGS_JDK="-nologo -MD -Zc:preprocessor -Zc:inline -Zc:throwingNew -permissive- -Zc:wchar_t-"
@@ -634,15 +588,15 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
634588 TOOLCHAIN_CFLAGS_JDK="$TOOLCHAIN_CFLAGS_JDK $CHARSET_CFLAGS"
635589
636590 # CFLAGS C language level for JDK sources (hotspot only uses C++)
637- if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang || test "x$TOOLCHAIN_TYPE" = xxlc ; then
591+ if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
638592 LANGSTD_CFLAGS="-std=c11"
639593 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
640594 LANGSTD_CFLAGS="-std:c11"
641595 fi
642596 TOOLCHAIN_CFLAGS_JDK_CONLY="$LANGSTD_CFLAGS $TOOLCHAIN_CFLAGS_JDK_CONLY"
643597
644598 # CXXFLAGS C++ language level for all of JDK, including Hotspot.
645- if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang || test "x$TOOLCHAIN_TYPE" = xxlc ; then
599+ if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
646600 LANGSTD_CXXFLAGS="-std=c++14"
647601 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
648602 LANGSTD_CXXFLAGS="-std:c++14"
@@ -666,8 +620,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
666620 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
667621 WARNING_CFLAGS="$WARNINGS_ENABLE_ALL"
668622
669- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
670- WARNING_CFLAGS="" # currently left empty
671623 fi
672624
673625 # Set some additional per-OS defines.
@@ -692,31 +644,16 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
692644 if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
693645 PICFLAG="-fPIC"
694646 PIEFLAG="-fPIE"
695- elif test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
696- JVM_PICFLAG="-fpic -mcmodel=large -Wl,-bbigtoc
697- JDK_PICFLAG="-fpic
698- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
699- # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only
700- # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker
701- # will have to patch this single instruction with a call to some out-of-order code which
702- # does the load from the TOC. This is of course slower, and we also would have
703- # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'.
704- # With 'qpic=large' the compiler will by default generate a two-instruction sequence which
705- # can be patched directly by the linker and does not require a jump to out-of-order code.
706- #
707- # Since large TOC causes perf. overhead, only pay it where we must. Currently this is
708- # for all libjvm variants (both gtest and normal) but no other binaries. So, build
709- # libjvm with -qpic=large and link with -bbigtoc.
710- JVM_PICFLAG="-qpic=large"
711- JDK_PICFLAG="-qpic"
712647 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
713648 PICFLAG=""
714649 fi
715650
716- if test "x$TOOLCHAIN_TYPE" != xxlc; then
651+ if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
652+ JVM_PICFLAG="-fpic -mcmodel=large"
653+ else
717654 JVM_PICFLAG="$PICFLAG"
718- JDK_PICFLAG="$PICFLAG"
719655 fi
656+ JDK_PICFLAG="$PICFLAG"
720657
721658 if test "x$OPENJDK_TARGET_OS" = xmacosx; then
722659 # Linking is different on macOS
@@ -746,8 +683,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
746683 $1 _DEFINES_CPU_JDK="${$1 _DEFINES_CPU_JDK} -DARCH='\"$FLAGS_CPU_LEGACY\"' \
747684 -D$FLAGS_CPU_LEGACY"
748685
749- if test "x$FLAGS_CPU_BITS" = x64 && test "x$FLAGS_OS" != xaix; then
750- # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it.
686+ if test "x$FLAGS_CPU_BITS" = x64; then
751687 $1 _DEFINES_CPU_JDK="${$1 _DEFINES_CPU_JDK} -D_LP64=1"
752688 $1 _DEFINES_CPU_JVM="${$1 _DEFINES_CPU_JVM} -D_LP64=1"
753689 fi
@@ -830,11 +766,6 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
830766 $1 _CFLAGS_CPU="-mcpu=pwr8"
831767 fi
832768
833- elif test "x$TOOLCHAIN_TYPE" = xxlc; then
834- if test "x$FLAGS_CPU" = xppc64; then
835- $1 _CFLAGS_CPU_JVM="-qarch=ppc64"
836- fi
837-
838769 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
839770 if test "x$FLAGS_CPU" = xx86; then
840771 $1 _CFLAGS_CPU_JVM="-arch:IA32"
0 commit comments