On 09/10/13 21:46, Jeff Law wrote: > On 08/21/13 03:21, Andreas Krebbel wrote: >> [RFC] Allow functions calling mcount before prologue to be leaf functions >> http://gcc.gnu.org/ml/gcc-patches/2013-04/msg00993.html > I don't think this is necessarily correct for all targets. ISTM the > ability to consider a function calling mcount as a leaf needs to be a > property of the target.
We have already "profile_before_prologue" as a target property. Shouldn't this be enough to decide upon this? When a function calls mcount before the prologue it shouldn't matter whether the function is leaf or not. -Andreas-