On Fri, 24 Mar 2023 17:12:26 GMT, Julian Waters <jwat...@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, since strict-aliasing is required for both linker and compiler, and the > same optimization level should be specified instead of letting the default > -O1 be passed to the linker This pull request has now been integrated. Changeset: aa762102 Author: Julian Waters <jwat...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/aa762102e9328ca76663b56b3be6f6141b044744 Stats: 7 lines in 2 files changed: 4 ins; 0 del; 3 mod 8304893: Link Time Optimization with gcc can be faster Reviewed-by: dholmes, erikj ------------- PR: https://git.openjdk.org/jdk/pull/13180