# HG changeset patch # User lana # Date 1405697114 25200 # Node ID 789a49ce93c87f30b0e3f416a4681da7565454c4 # Parent cf7bdeab1f2c9ca522794d30084a2f230cb1c772# Parent 2842cbf0da97d2f1d53243fedddc4c22f20a1023 Merge diff -r cf7bdeab1f2c -r 789a49ce93c8 common/autoconf/flags.m4 --- a/common/autoconf/flags.m4 Thu Jul 17 09:50:04 2014 -0700 +++ b/common/autoconf/flags.m4 Fri Jul 18 08:25:14 2014 -0700 @@ -407,11 +407,7 @@ C_O_FLAG_HI="-O3" C_O_FLAG_NORM="-O2" fi - if test "x$HAS_CFLAG_OPTIMIZE_DEBUG" = "xtrue"; then - C_O_FLAG_DEBUG="$CFLAG_OPTIMIZE_DEBUG_FLAG" - else - C_O_FLAG_DEBUG="-O0" - fi + C_O_FLAG_DEBUG="-O0" C_O_FLAG_NONE="-O0" elif test "x$TOOLCHAIN_TYPE" = xclang; then if test "x$OPENJDK_TARGET_OS" = xmacosx; then diff -r cf7bdeab1f2c -r 789a49ce93c8 common/autoconf/generated-configure.sh --- a/common/autoconf/generated-configure.sh Thu Jul 17 09:50:04 2014 -0700 +++ b/common/autoconf/generated-configure.sh Fri Jul 18 08:25:14 2014 -0700 @@ -4311,7 +4311,7 @@ #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1403557683 +DATE_WHEN_GENERATED=1404942241 ############################################################################### # @@ -42011,11 +42011,7 @@ C_O_FLAG_HI="-O3" C_O_FLAG_NORM="-O2" fi - if test "x$HAS_CFLAG_OPTIMIZE_DEBUG" = "xtrue"; then - C_O_FLAG_DEBUG="$CFLAG_OPTIMIZE_DEBUG_FLAG" - else - C_O_FLAG_DEBUG="-O0" - fi + C_O_FLAG_DEBUG="-O0" C_O_FLAG_NONE="-O0" elif test "x$TOOLCHAIN_TYPE" = xclang; then if test "x$OPENJDK_TARGET_OS" = xmacosx; then diff -r cf7bdeab1f2c -r 789a49ce93c8 test/Makefile --- a/test/Makefile Thu Jul 17 09:50:04 2014 -0700 +++ b/test/Makefile Fri Jul 18 08:25:14 2014 -0700 @@ -66,6 +66,32 @@ hotspot_%: @$(NO_STOPPING)$(call SUBDIR_TEST, $(HOTSPOT_DIR), TEST="$@" $@) +# +# jtreg_tests +# +# Invocation: +# +# make jtreg_tests TESTDIRS= +# +# where is something like '..//test/runtime', +# in turn being one of the top level directories (for +# example 'hotspot'). +# +# The below will strip the path prefix and delegate to the +# corresponding ..//test/Makefile. + +ifneq ($(TESTDIRS),) +# Extract the component from ..//... +COMPONENT=$(word 2,$(subst /, ,$(TESTDIRS))) + +# Strip off the ..//test prefix and pass the rest as TESTDIRS +# to the delegate Makefile +TESTDIRS_TESTS=$(patsubst ../$(COMPONENT)/test/%,%,$(TESTDIRS)) +endif + +jtreg_tests: + @$(NO_STOPPING)$(call SUBDIR_TEST, $(TOPDIR)/$(COMPONENT), TESTDIRS=$(TESTDIRS_TESTS) $@) + ################################################################ # Phony targets (e.g. these are not filenames)