aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-08-06 22:49:05 +0000
committerCary Coutant <ccoutant@gcc.gnu.org>2012-08-06 15:49:05 -0700
commit292ffe8608e86772301bf7463ecd1e5e66de8c8d (patch)
treeb93db13b742aa3913318cc28093782f8de4635c7 /gcc/cgraphunit.c
parentd28cfc4ae6c8651b1631c8c00f016d8258de7458 (diff)
downloadgcc-292ffe8608e86772301bf7463ecd1e5e66de8c8d.zip
gcc-292ffe8608e86772301bf7463ecd1e5e66de8c8d.tar.gz
gcc-292ffe8608e86772301bf7463ecd1e5e66de8c8d.tar.bz2
cgraphunit.c (assemble_thunk): Add source line info.
2012-08-06 Cary Coutant <ccoutant@google.com> gcc/ * cgraphunit.c (assemble_thunk): Add source line info. * final.c (final): Check for non-null cfg pointer. gcc/testsuite/ * g++.dg/debug/dwarf2/non-virtual-thunk.C: New test case. From-SVN: r190190
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index a6591b5..2dd0871 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1381,6 +1381,10 @@ assemble_thunk (struct cgraph_node *node)
init_function_start (thunk_fndecl);
cfun->is_thunk = 1;
assemble_start_function (thunk_fndecl, fnname);
+ (*debug_hooks->source_line) (DECL_SOURCE_LINE (thunk_fndecl),
+ DECL_SOURCE_FILE (thunk_fndecl),
+ /* discriminator */ 0,
+ /* is_stmt */ 1);
targetm.asm_out.output_mi_thunk (asm_out_file, thunk_fndecl,
fixed_offset, virtual_value, alias);