RFR: 8304893: Link Time Optimization with gcc can be faster [v3]
Thomas Stuefe
stuefe at openjdk.org
Fri Mar 31 13:02:19 UTC 2023
On Thu, 30 Mar 2023 23:38:12 GMT, Julian Waters <jwaters at openjdk.org> wrote:
>> 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:
>
> Flag should be used instead
It would be very helpful if PR description and especially JBS issue could be more specific.
> Also fixes some incorrect flags passed to ld for linking as well
What incorrect options, what exactly changed?
This is important to gauge the effect it would have on backports, and whether this issue is important to backport.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13180#issuecomment-1491889328
More information about the build-dev
mailing list