On Nov 4, 2019, Richard Biener <rguent...@suse.de> wrote: > I wonder why we shouldn't simply adjust aux_base_name to something > else for -flto [in the driver].
About that, having tried to make sense of the current uses of aux_base_name and of lto-wrapper, three main possibilities occur to me: a) adjust the driver code to accept -auxbase, and have lto-wrapper explicitly pass -aux-base ${output_dir-.}/$(lbasename ${output_name}) or somesuch for each -fltrans command; b) introduce -auxdir and get lto-wrapper to pass -auxdir ${output_dir-.} for each -fltrans (and offload) command; or c) get -fltrans to implicitly adjust aux_base_name with the directory passed to -dumpdir, if any, or . otherwise Any preferences? -- Alexandre Oliva, freedom fighter he/him https://FSFLA.org/blogs/lxo Free Software Evangelist Stallman was right, but he's left :( GNU Toolchain Engineer FSMatrix: It was he who freed the first of us FSF & FSFLA board member The Savior shall return (true);