8190284: link-time-opt should not be using -fwhole-program
authorihse
Mon, 30 Oct 2017 08:34:54 +0100
changeset 47884 3cfab71d6c81
parent 47883 acda08206310
child 47885 5caa1d5f74c1
8190284: link-time-opt should not be using -fwhole-program Reviewed-by: dholmes
make/hotspot/lib/JvmFeatures.gmk
--- a/make/hotspot/lib/JvmFeatures.gmk	Tue Nov 14 10:09:21 2017 +0100
+++ b/make/hotspot/lib/JvmFeatures.gmk	Mon Oct 30 08:34:54 2017 +0100
@@ -153,7 +153,7 @@
   # like the old build, but it's probably not right.
   JVM_OPTIMIZATION :=
   JVM_CFLAGS_FEATURES += -O3 -flto
-  JVM_LDFLAGS_FEATURES += -O3 -flto -fwhole-program -fno-strict-aliasing
+  JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing
 endif
 
 ifeq ($(call check-jvm-feature, minimal), true)