< prev index next >

make/autoconf/generated-configure.sh

Print this page
rev 47445 : 8171853: Remove Shark compiler

*** 654,664 **** ENABLE_GENERATE_CLASSLIST BUILD_FAILURE_HANDLER ENABLE_INTREE_EC VALID_JVM_FEATURES JVM_FEATURES_custom - JVM_FEATURES_zeroshark JVM_FEATURES_zero JVM_FEATURES_minimal JVM_FEATURES_core JVM_FEATURES_client JVM_FEATURES_server --- 654,663 ----
*** 674,687 **** USE_EXTERNAL_LIBPNG PNG_LIBS PNG_CFLAGS USE_EXTERNAL_LIBGIF USE_EXTERNAL_LIBJPEG - LLVM_LIBS - LLVM_LDFLAGS - LLVM_CFLAGS - LLVM_CONFIG LIBFFI_LIB_FILE ENABLE_LIBFFI_BUNDLING LIBFFI_LIBS LIBFFI_CFLAGS ALSA_LIBS --- 673,682 ----
*** 2026,2037 **** compatibility and is ignored --with-jdk-variant JDK variant to build (normal) [normal] --with-debug-level set the debug level (release, fastdebug, slowdebug, optimized) [release] --with-jvm-variants JVM variants (separated by commas) to build ! (server,client,minimal,core,zero,zeroshark,custom) ! [server] --with-cpu-port specify sources to use for Hotspot 64-bit ARM port (arm64,aarch64) [aarch64] --with-devkit use this devkit for compilers, tools and resources --with-sys-root alias for --with-sysroot for backwards compatability --with-sysroot use this directory as sysroot --- 2021,2031 ---- compatibility and is ignored --with-jdk-variant JDK variant to build (normal) [normal] --with-debug-level set the debug level (release, fastdebug, slowdebug, optimized) [release] --with-jvm-variants JVM variants (separated by commas) to build ! (server,client,minimal,core,zero,custom) [server] --with-cpu-port specify sources to use for Hotspot 64-bit ARM port (arm64,aarch64) [aarch64] --with-devkit use this devkit for compilers, tools and resources --with-sys-root alias for --with-sysroot for backwards compatability --with-sysroot use this directory as sysroot
*** 4257,4272 **** # or visit www.oracle.com if you need additional information or have any # questions. # # All valid JVM features, regardless of platform ! VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ graal vm-structs jni-check services management all-gcs nmt cds \ static-build link-time-opt aot" # All valid JVM variants ! VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" ############################################################################### # Check if the specified JVM variant should be built. To be used in shell if # constructs, like this: # if HOTSPOT_CHECK_JVM_VARIANT(server); then --- 4251,4266 ---- # or visit www.oracle.com if you need additional information or have any # questions. # # All valid JVM features, regardless of platform ! VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \ graal vm-structs jni-check services management all-gcs nmt cds \ static-build link-time-opt aot" # All valid JVM variants ! VALID_JVM_VARIANTS="server client minimal core zero custom" ############################################################################### # Check if the specified JVM variant should be built. To be used in shell if # constructs, like this: # if HOTSPOT_CHECK_JVM_VARIANT(server); then
*** 4293,4303 **** # server: normal interpreter, and a tiered C1/C2 compiler # client: normal interpreter, and C1 (no C2 compiler) # minimal: reduced form of client with optional features stripped out # core: normal interpreter only, no compiler # zero: C++ based interpreter only, no compiler - # zeroshark: C++ based interpreter, and a llvm-based compiler # custom: baseline JVM with no default features # ############################################################################### --- 4287,4296 ----
*** 4758,4772 **** # Parse library options, and setup needed libraries ################################################################################ ################################################################################ - # Setup llvm (Low-Level VM) - ################################################################################ - - - ################################################################################ # Setup various libraries, typically small system libraries ################################################################################ ################################################################################ --- 4751,4760 ----
*** 5115,5125 **** # definitions. It is replaced with custom functionality when building # custom sources. #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: ! DATE_WHEN_GENERATED=1507635096 ############################################################################### # # Initialization / Boot-strapping # --- 5103,5113 ---- # definitions. It is replaced with custom functionality when building # custom sources. #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: ! DATE_WHEN_GENERATED=1507993389 ############################################################################### # # Initialization / Boot-strapping #
*** 17074,17084 **** ! if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then # zero behaves as a platform and rewrites these values. This is really weird. :( # We are guaranteed that we do not build any other variants when building zero. HOTSPOT_TARGET_CPU=zero HOTSPOT_TARGET_CPU_ARCH=zero fi --- 17062,17072 ---- ! if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then # zero behaves as a platform and rewrites these values. This is really weird. :( # We are guaranteed that we do not build any other variants when building zero. HOTSPOT_TARGET_CPU=zero HOTSPOT_TARGET_CPU_ARCH=zero fi
*** 25114,25124 **** fi # Should we build the serviceability agent (SA)? INCLUDE_SA=true ! if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then INCLUDE_SA=false fi if test "x$OPENJDK_TARGET_OS" = xaix ; then INCLUDE_SA=false fi --- 25102,25112 ---- fi # Should we build the serviceability agent (SA)? INCLUDE_SA=true ! if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then INCLUDE_SA=false fi if test "x$OPENJDK_TARGET_OS" = xaix ; then INCLUDE_SA=false fi
*** 51845,51855 **** fi ! if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then # Non-zero builds have stricter warnings JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" else if test "x$TOOLCHAIN_TYPE" = xclang; then # Some versions of llvm do not like -Wundef --- 51833,51843 ---- fi ! if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then # Non-zero builds have stricter warnings JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" else if test "x$TOOLCHAIN_TYPE" = xclang; then # Some versions of llvm do not like -Wundef
*** 52726,52736 **** fi ! if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then # Non-zero builds have stricter warnings OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" else if test "x$TOOLCHAIN_TYPE" = xclang; then # Some versions of llvm do not like -Wundef --- 52714,52724 ---- fi ! if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then # Non-zero builds have stricter warnings OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" else if test "x$TOOLCHAIN_TYPE" = xclang; then # Some versions of llvm do not like -Wundef
*** 54434,54444 **** else NEEDS_LIB_ALSA=false fi # Check if ffi is needed ! if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then NEEDS_LIB_FFI=true else NEEDS_LIB_FFI=false fi --- 54422,54432 ---- else NEEDS_LIB_ALSA=false fi # Check if ffi is needed ! if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then NEEDS_LIB_FFI=true else NEEDS_LIB_FFI=false fi
*** 54507,54518 **** # If dynamic was requested, it's available since it would fail above otherwise. # If dynamic wasn't requested, go with static unless it isn't available. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 $as_echo_n "checking how to link with libstdc++... " >&6; } ! if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \ ! || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 $as_echo "dynamic" >&6; } else LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" --- 54495,54505 ---- # If dynamic was requested, it's available since it would fail above otherwise. # If dynamic wasn't requested, go with static unless it isn't available. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 $as_echo_n "checking how to link with libstdc++... " >&6; } ! if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 $as_echo "dynamic" >&6; } else LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
*** 64880,64977 **** - if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then - # Extract the first word of "llvm-config", so it can be a program name with args. - set dummy llvm-config; ac_word=$2 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 - $as_echo_n "checking for $ac_word... " >&6; } - if ${ac_cv_prog_LLVM_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 - else - if test -n "$LLVM_CONFIG"; then - ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. - else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR - for as_dir in $PATH - do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_LLVM_CONFIG="llvm-config" - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi - done - done - IFS=$as_save_IFS - - fi - fi - LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG - if test -n "$LLVM_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 - $as_echo "$LLVM_CONFIG" >&6; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 - $as_echo "no" >&6; } - fi - - - - if test "x$LLVM_CONFIG" != xllvm-config; then - as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 - fi - - llvm_components="jit mcjit engine nativecodegen native" - unset LLVM_CFLAGS - for flag in $("$LLVM_CONFIG" --cxxflags); do - if echo "${flag}" | grep -q '^-[ID]'; then - if test "${flag}" != "-D_DEBUG" ; then - if test "${LLVM_CFLAGS}" != "" ; then - LLVM_CFLAGS="${LLVM_CFLAGS} " - fi - LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" - fi - fi - done - llvm_version=$("${LLVM_CONFIG}" --version | $SED 's/\.//; s/svn.*//') - LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" - - unset LLVM_LDFLAGS - for flag in $("${LLVM_CONFIG}" --ldflags); do - if echo "${flag}" | grep -q '^-L'; then - if test "${LLVM_LDFLAGS}" != ""; then - LLVM_LDFLAGS="${LLVM_LDFLAGS} " - fi - LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" - fi - done - - unset LLVM_LIBS - for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do - if echo "${flag}" | grep -q '^-l'; then - if test "${LLVM_LIBS}" != ""; then - LLVM_LIBS="${LLVM_LIBS} " - fi - LLVM_LIBS="${LLVM_LIBS}${flag}" - fi - done - - # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not - # always properly detect -ltinfo - LLVM_LIBS="${LLVM_LIBS} -ltinfo" - - - - - fi - - # Check whether --with-libjpeg was given. if test "${with_libjpeg+set}" = set; then : withval=$with_libjpeg; fi --- 64867,64876 ----
*** 65763,65773 **** - # Hotspot setup depends on lib checks. # The user can in some cases supply additional jvm features. For the custom # variant, this defines the entire variant. --- 65662,65671 ----
*** 65834,65855 **** if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 fi fi - if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then - if [[ " $JVM_FEATURES " =~ " zero " ]] ; then - as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 - fi - fi - - if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then - if [[ " $JVM_FEATURES " =~ " shark " ]] ; then - as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 - fi - fi - # Only enable jvmci on x86_64, sparcv9 and aarch64. if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then JVM_FEATURES_jvmci="jvmci" --- 65732,65741 ----
*** 65926,65946 **** JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" - JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" JVM_FEATURES_custom="$JVM_FEATURES" - # Used for verification of Makefiles by check-jvm-feature # We don't support --with-jvm-interpreter anymore, use zero instead. --- 65812,65830 ----
*** 67806,67816 **** JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" - JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" # Validate features for variant in $JVM_VARIANTS; do { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 --- 67690,67699 ----
< prev index next >