diff options
Diffstat (limited to 'gcc-4.4.0/gcc/calls.c')
-rw-r--r-- | gcc-4.4.0/gcc/calls.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/calls.c b/gcc-4.4.0/gcc/calls.c index 7bad365b5..68768879c 100644 --- a/gcc-4.4.0/gcc/calls.c +++ b/gcc-4.4.0/gcc/calls.c @@ -39,6 +39,7 @@ along with GCC; see the file COPYING3. If not see #include "sbitmap.h" #include "langhooks.h" #include "target.h" +#include "debug.h" #include "cgraph.h" #include "except.h" #include "dbgcnt.h" @@ -401,6 +402,11 @@ emit_call_1 (rtx funexp, tree fntree, tree fndecl ATTRIBUTE_UNUSED, SIBLING_CALL_P (call_insn) = ((ecf_flags & ECF_SIBCALL) != 0); + /* Record debug information for virtual calls. */ + if (flag_enable_icf_debug && fndecl == NULL) + (*debug_hooks->virtual_call_token) (CALL_EXPR_FN (fntree), + INSN_UID (call_insn)); + /* Restore this now, so that we do defer pops for this call's args if the context of the call as a whole permits. */ inhibit_defer_pop = old_inhibit_defer_pop; |