On 4/21/2021 2:14 AM, Martin Liška wrote:
Hey. It's quite common case that a build system does not a -flto=foo option as part of linker command. We should merge -flto options from the corresponding object files. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: * lto-wrapper.c (merge_and_complain): Merge -flto=arg options. (run_gcc): Use -flto argument detection for merged fdecoded_options.
OK jeff