[PATCH] Add -fno-instrument-function
Wed Sep 3 11:04:00 GMT 2014
On Tue, Sep 2, 2014 at 5:00 PM, Andi Kleen <email@example.com> wrote:
>> Hmm, why not make -no-pg (does that exist?) and/or -mno-fentry
> I'm not sure.
>> do this? That is, I don't see the need for a new option.
> That would be really odd behavior. An yes/no option whose default
> is controlled by other object files' command line.
> And -pg would be for all files in LTO, and no-pg only for that file,
> so not be symmetric.
> I think an explicit different option has far cleaner semantics for
> now (at least until the LTO option mess can be properly cleaned up)
No, not a new "fake" option either but just initialize
DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT properly when
not doing -pg or -mfentry (that is, set it to 1).
More information about the Gcc-patches