On Fri, 15 Nov 2024 22:33:24 GMT, Kim Barrett <kbarr...@openjdk.org> wrote:

>> make/hotspot/lib/JvmFeatures.gmk line 173:
>> 
>>> 171:   JVM_OPTIMIZATION := HIGHEST_JVM
>>> 172:   ifeq ($(call isCompiler, gcc), true)
>>> 173:     JVM_CFLAGS_FEATURES += -DINCLUDE_LINK_TIME_OPTIMIZATION=1 
>>> -flto=auto -fuse-linker-plugin -fno-strict-aliasing \
>> 
>> I don't get this. I find no pre-existing INCLUDE_LINK_TIME_OPTIMIZATION 
>> ifdefs, and you are not adding any. What is the purpose of this?
>
> I asked the same question.  But as further discussion has indicated, we might 
> need this define for
> disabling the poisoning of selected C library functions when building with 
> LTO, because LTO doesn't
> support the mechanism used for that.

I think all JVM features have these INCLUDE macros so I wanted to add it it for 
this JVM feature too. But I can remove it from the PR if it is just wanted for 
the other JVM features but not this one for some reason.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22069#discussion_r1846101893

Reply via email to