Skip to content

Commit

Permalink
8326109: GCC 13 reports maybe-uninitialized warnings for jni.cpp with…
Browse files Browse the repository at this point in the history
… dtrace enabled

Reviewed-by: phh
  • Loading branch information
gnu-andrew committed Feb 21, 2024
1 parent de3ae6f commit 382942d
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 @@ -40,6 +40,10 @@ ifeq ($(TOOLCHAIN_TYPE), gcc)
# Need extra inlining to collapse all marking code into the hot marking loop
BUILD_LIBJVM_shenandoahConcurrentMark.cpp_CXXFLAGS := --param inline-unit-growth=1000
endif
ifeq ($(call check-jvm-feature, dtrace), true)
# DTRACE_PROBE macros trigger a maybe-uninitialized warning on 'ret'
BUILD_LIBJVM_jni.cpp_CXXFLAGS := -Wno-maybe-uninitialized
endif
endif

LIBJVM_FDLIBM_COPY_OPT_FLAG := $(CXX_O_FLAG_NONE)
Expand Down

1 comment on commit 382942d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.