Re: RFR: 8304893: Link Time Optimization with gcc can be faster [v3]

2023-04-03 Thread Julian Waters
On Thu, 30 Mar 2023 23:38:12 GMT, Julian Waters 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 >>

Re: RFR: 8304893: Link Time Optimization with gcc can be faster [v3]

2023-03-31 Thread Thomas Stuefe
On Thu, 30 Mar 2023 23:38:12 GMT, Julian Waters 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 >>

Re: RFR: 8304893: Link Time Optimization with gcc can be faster [v3]

2023-03-31 Thread Erik Joelsson
On Thu, 30 Mar 2023 23:38:12 GMT, Julian Waters 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 >>

Re: RFR: 8304893: Link Time Optimization with gcc can be faster [v3]

2023-03-31 Thread David Holmes
On Thu, 30 Mar 2023 23:38:12 GMT, Julian Waters 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 >>

Re: RFR: 8304893: Link Time Optimization with gcc can be faster [v3]

2023-03-30 Thread Julian Waters
On Thu, 30 Mar 2023 23:26:17 GMT, Julian Waters wrote: >> It may make sense to have the `-O*` argument to the linker match what we do >> for compilation. I'm not sure how related they are. > > Good catch, thanks. Will also add this flag to the opt-size option so it can > override what

Re: RFR: 8304893: Link Time Optimization with gcc can be faster [v3]

2023-03-30 Thread Julian Waters
> 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