Skip to content

Commit

Permalink
8343698: Linux x86_64 lto build gives a lot of warnings and fails lto…
Browse files Browse the repository at this point in the history
…-wrapper: fatal error: make returned 2 exit status

Reviewed-by: ihse, jwaters
  • Loading branch information
MBaesken committed Nov 25, 2024
1 parent 68ba7ee commit 9576546
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions make/hotspot/lib/JvmOverrideFiles.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ ifeq ($(TOOLCHAIN_TYPE), gcc)
# Need extra inlining to collapse shared marking code into the hot marking loop
BUILD_LIBJVM_shenandoahMark.cpp_CXXFLAGS := --param inline-unit-growth=1000
endif
# disable lto in g1ParScanThreadState because of special inlining/flattening used there
ifeq ($(call check-jvm-feature, link-time-opt), true)
BUILD_LIBJVM_g1ParScanThreadState.cpp_CXXFLAGS := -fno-lto
endif
endif

LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NONE)
Expand Down

0 comments on commit 9576546

Please sign in to comment.