> 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).

The only way would be to handle it in build_decl itself.
There seem to be a bazillion callers all over the tree that all do their
custom thing.

It would also need a new target hook to check for fentry.

Far more complicated patch.

-Andi


-- 
a...@linux.intel.com -- Speaking for myself only.

Reply via email to