RFA: Enhance information recorded by -frecord-gcc-switches
Nick Clifton
nickc@redhat.com
Thu Jun 8 14:30:00 GMT 2017
Hi Richard,
>> The -frecord-gcc-switches option records the gcc command line. It
>> does not however expand options like -O2 into the optimizations that
>> this enables.
>
> I think individually enabled passes by -On are not really useful information
> as you generally cannot replace -On by a set of other switches on the
> command-line.
Is that true ? I always thought that -O2 could be duplicated by using a (very
long) set of individual command line options.
Regardless, the point of this patch is to record which options were enabled, via
whatever route, in the binaries. This can be useful to users, or distributors,
who want to check that, for example, a specific security option was enabled, or
that a particular a particular optimization was run.
Cheers
Nick
More information about the Gcc-patches
mailing list