[Bug debug/55794] FAIL: g++.dg/debug/dwarf2/non-virtual-thunk.C -std=gnu++98 and -std=gnu++11
dave.anglin at bell dot net
gcc-bugzilla@gcc.gnu.org
Tue Apr 1 18:02:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55794
--- Comment #6 from dave.anglin at bell dot net ---
On 4/1/2014 1:04 PM, ccoutant at gcc dot gnu.org wrote:
> The patch that this test case was part of was supposed to fix that problem by
> adding a call to debug_hooks->source_line from assemble_thunk.
The patch to cgraphunit.c added the call to debug_hooks->source_line:
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);
but the change is no longer in the current 4.9 code. Maybe the call
needs to be
added to pa_asm_output_mi_thunk.
More information about the Gcc-bugs
mailing list