RFR: 8304893: Link Time Optimization with gcc can be faster [v2]
Julian Waters
jwaters at openjdk.org
Wed Mar 29 06:55:20 UTC 2023
> A previous argument against link time optimization support that we have for gcc is that it was extremely slow. After some checks it turns out we are passing rather inefficient flags to gcc in optimized builds. Changing these flags to run the linker optimizations in parallel and passing additional flags to the compiler have the ability to speed this process up significantly. Also fixes some incorrect flags passed to ld for linking as well
Julian Waters has updated the pull request incrementally with one additional commit since the last revision:
Comment not required
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/13180/files
- new: https://git.openjdk.org/jdk/pull/13180/files/7360c68b..60b49089
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=13180&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=13180&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 1 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/13180.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/13180/head:pull/13180
PR: https://git.openjdk.org/jdk/pull/13180
More information about the build-dev
mailing list