]> gcc.gnu.org Git - gcc.git/commit - gcc/function.c
Always set DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT correctly
authorAndi Kleen <ak@linux.intel.com>
Tue, 16 Sep 2014 03:22:41 +0000 (03:22 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Tue, 16 Sep 2014 03:22:41 +0000 (03:22 +0000)
commit0b37ba8a60c70a212e1f663ddcb3bbf8b2468d6b
treefbcfa49214f70adb371ba5e9affc7d4ef955288e
parente93050426d180c5d22653e349e066331785521f0
Always set DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT correctly

When profiling is disabled force DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT
for each function to one. This information is then preserved
through LTO.

With this patch for LTO builds -pg needs to be set on both the
LTO final link and the original source build, to allow -pg
(or -pg -fentry) to be active for that source file. This allows
to build large projects mostly with -pg, except for a few files,
and still use LTO.

gcc/:

2014-09-15  Andi Kleen  <ak@linux.intel.com>

* function.c (allocate_struct_function): Force
DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
profiling is disabled.

From-SVN: r215284
gcc/ChangeLog
gcc/function.c
This page took 0.057986 seconds and 5 git commands to generate.