This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add -fno-instrument-function
- From: Andi Kleen <ak at linux dot intel dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Andi Kleen <andi at firstfloor dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 2 Sep 2014 08:00:15 -0700
- Subject: Re: [PATCH] Add -fno-instrument-function
- Authentication-results: sourceware.org; auth=none
- References: <1409603138-18755-1-git-send-email-andi at firstfloor dot org> <CAFiYyc3=wWNqWUy5NEFxWBphKGBhFnGb2-JNb=zT-5o5cOnr4Q at mail dot gmail dot com>
> 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)
-Andi