This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -finstrument-functions-exclude-file-list can't work in some case
Pan ruochen <panruochen@gmail.com> writes:
> I want to inform gcc to insert
> __cyg_profile_func_enter/__cyg_profile_func_exit callbacks just for
> the functions within
> the file `runtime.c'. As you can see, main.c and generic_ops.c are
> both in the exclude list. gcc still generates
> __cyg_profile_func_enter/__cyg_profile_func_exit for them. And
> /home/prc/linux-2.6/include/linux/pm_runtime.h shall
> match linux/, but __cyg_profile_func_enter/__cyg_profile_func_exit are
> still created.
It does look odd. It may be a bug. It is also possible that the
function calls are coming from inlined functions and the linker is
misreporting the location of the reference. See if you can come up with
a standalone test case.
Ian