Commit 1a025bbf by Jakub Jelinek Committed by Jakub Jelinek

re PR debug/60152 (multiple AT_calling_convention attributes generated after r205679)

	PR debug/60152
	* dwarf2out.c (gen_subprogram_die): Don't call
	add_calling_convention_attribute if subr_die is old_die.

From-SVN: r207770
parent 69479ebd
2014-02-13 Jakub Jelinek <jakub@redhat.com>
PR debug/60152
* dwarf2out.c (gen_subprogram_die): Don't call
add_calling_convention_attribute if subr_die is old_die.
2014-02-13 Sharad Singhai <singhai@google.com> 2014-02-13 Sharad Singhai <singhai@google.com>
* doc/optinfo.texi: Fix order of nodes. * doc/optinfo.texi: Fix order of nodes.
......
...@@ -18531,9 +18531,10 @@ gen_subprogram_die (tree decl, dw_die_ref context_die) ...@@ -18531,9 +18531,10 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
call_site_count = -1; call_site_count = -1;
tail_call_site_count = -1; tail_call_site_count = -1;
} }
/* Add the calling convention attribute if requested. */
add_calling_convention_attribute (subr_die, decl);
if (subr_die != old_die)
/* Add the calling convention attribute if requested. */
add_calling_convention_attribute (subr_die, decl);
} }
/* Returns a hash value for X (which really is a die_struct). */ /* Returns a hash value for X (which really is a die_struct). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment