RFR: 8345265: Minor improvements for LTO across all compilers [v7]
Julian Waters
jwaters at openjdk.org
Fri Jan 9 16:50:32 UTC 2026
> This is a general cleanup and improvement of LTO, as well as a quick fix to remove a workaround in the Makefiles that disabled LTO for g1ParScanThreadState.cpp due to the old poisoning mechanism causing trouble. The -Wno-attribute-warning change here can be removed once Kim's new poisoning solution is integrated.
>
> - -fno-omit-frame-pointer is added to gcc to stop the linker from emitting code without the frame pointer
> - -flto is set to $(JOBS) instead of auto to better match what the user requested
> - -Gy is passed to the Microsoft compiler. This does not fully fix LTO under Microsoft, but prevents warnings about -LTCG:INCREMENTAL at least
Julian Waters has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 27 commits:
- Merge branch 'openjdk:master' into patch-16
- Implement basic Link Time Optimization in LibCommon.gmk
- Implement basic Link Time Optimization for executables in LauncherCommon.gmk
- Revert LINK_TIME_OPTIMIZATION in ClientLibraries.gmk
- Merge branch 'master' into patch-16
- Merge branch 'master' into patch-16
- Revert recent changes to ClientLibraries.gmk
- Revert recent changes to CompileJvm.gmk
- Revert recent changes to Flags.gmk
- Revert recent changes to NativeCompilation.gmk
- ... and 17 more: https://git.openjdk.org/jdk/compare/8737a8ca...47a6dc55
-------------
Changes: https://git.openjdk.org/jdk/pull/22464/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22464&range=06
Stats: 85 lines in 11 files changed: 35 ins; 46 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/22464.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/22464/head:pull/22464
PR: https://git.openjdk.org/jdk/pull/22464
More information about the build-dev
mailing list