https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120881
--- Comment #22 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to H.J. Lu from comment #21) > Created attachment 61785 [details] > A patch to warn -pg without -mfentry with shrink wrapping enabled __fentry__ was added in 2010: commit d22e4cc9397ed41534c9422d0b0ffef8c77bfa53 Author: Andi Kleen <a...@linux.intel.com> Date: Sat Aug 7 21:24:05 2010 -0700 x86: Add support for frame pointer less mcount Should we add TARGET_FENTRY to default to -mfentry on Linux?