Unfortunately -frecord-gcc-switches cannot serve our purpose because
the recorded switches are mergable, i.e. the linker will merge all
options to a set of strings. However, object files may have distinct
compile options. We want to preserve every object file's compile
options when doing LIPO build.

Thanks,
Dehao

On Sat, Oct 8, 2011 at 7:41 PM, Jakub Jelinek <ja...@redhat.com> wrote:
> On Sat, Oct 08, 2011 at 06:43:47PM +0800, Dehao Chen wrote:
>> This patch records the compiler command-line flags to a .note section,
>> which could be used by FDO/LIPO.
>>
>> Bootstrapped on x86_64, no regressions.
>>
>> Is it ok for google/gcc-4_6 and google/main branches?
>
> Why yet another record switches option?  Isn't -grecord-gcc-switches
> good enough for you (or -frecord-gcc-switches)?
>
>        Jakub
>

Reply via email to