# HG changeset patch # User iveresov # Date 1288993790 25200 # Node ID 34bd82eba3bbed1b8cab78cdae8fc1d0f59d181c # Parent e62345fd6a46aee5d3b8604860e60e02d34f7c79 6997456: Not possible to build just compiler2 Summary: Fix the compiler error. Allow to build just c2 specifying FORCE_TIERED=0 on the command line. Reviewed-by: never, kvn diff -r e62345fd6a46 -r 34bd82eba3bb make/linux/Makefile --- a/make/linux/Makefile Thu Nov 04 12:16:58 2010 -0700 +++ b/make/linux/Makefile Fri Nov 05 14:49:50 2010 -0700 @@ -62,7 +62,9 @@ include $(GAMMADIR)/make/$(OSNAME)/makefiles/rules.make ifndef CC_INTERP -FORCE_TIERED=1 + ifndef FORCE_TIERED + FORCE_TIERED=1 + endif endif ifdef LP64 @@ -254,7 +256,7 @@ $(BUILDTREE) VARIANT=tiered $(SUBDIRS_C2): $(BUILDTREE_MAKE) -ifdef FORCE_TIERED +ifeq ($(FORCE_TIERED),1) $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks $(BUILDTREE) VARIANT=tiered FORCE_TIERED=1 else diff -r e62345fd6a46 -r 34bd82eba3bb make/solaris/Makefile --- a/make/solaris/Makefile Thu Nov 04 12:16:58 2010 -0700 +++ b/make/solaris/Makefile Fri Nov 05 14:49:50 2010 -0700 @@ -53,7 +53,9 @@ include $(GAMMADIR)/make/$(OSNAME)/makefiles/rules.make ifndef CC_INTERP -FORCE_TIERED=1 + ifndef FORCE_TIERED + FORCE_TIERED=1 + endif endif ifdef LP64 @@ -210,7 +212,7 @@ $(BUILDTREE) VARIANT=tiered $(SUBDIRS_C2): $(BUILDTREE_MAKE) -ifdef FORCE_TIERED +ifeq ($(FORCE_TIERED),1) $(QUIETLY) $(MAKE) -f $(GAMMADIR)/make/$(OSNAME)/Makefile checks $(BUILDTREE) VARIANT=tiered FORCE_TIERED=1 else diff -r e62345fd6a46 -r 34bd82eba3bb make/windows/build.make --- a/make/windows/build.make Thu Nov 04 12:16:58 2010 -0700 +++ b/make/windows/build.make Fri Nov 05 14:49:50 2010 -0700 @@ -74,9 +74,11 @@ !if "$(BUILDARCH)" != "ia64" !ifndef CC_INTERP +!ifndef FORCE_TIERED FORCE_TIERED=1 !endif !endif +!endif !if "$(BUILDARCH)" == "amd64" Platform_arch=x86 @@ -100,7 +102,7 @@ !if "$(Variant)" == "compiler1" VARIANT_TEXT=Client !elseif "$(Variant)" == "compiler2" -!ifdef FORCE_TIERED +!if "$(FORCE_TIERED)" == "1" VARIANT_TEXT=Server realVariant=tiered !else diff -r e62345fd6a46 -r 34bd82eba3bb src/share/vm/runtime/java.cpp --- a/src/share/vm/runtime/java.cpp Thu Nov 04 12:16:58 2010 -0700 +++ b/src/share/vm/runtime/java.cpp Fri Nov 05 14:49:50 2010 -0700 @@ -198,7 +198,7 @@ if (CountCompiledCalls) { print_method_invocation_histogram(); } - if (ProfileInterpreter || C1UpdateMethodData) { + if (ProfileInterpreter COMPILER1_PRESENT(|| C1UpdateMethodData)) { print_method_profiling_data(); } if (TimeCompiler) {