aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-02-13 23:42:44 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-02-13 23:42:44 +0100
commit1a025bbfa05fc815db771206c036918ab88f0e11 (patch)
tree8ccff926a75ace8adcf1fcac574655fb6aadfb77 /gcc
parent69479ebda81efc93bc2308719af03face680ea01 (diff)
downloadgcc-1a025bbfa05fc815db771206c036918ab88f0e11.zip
gcc-1a025bbfa05fc815db771206c036918ab88f0e11.tar.gz
gcc-1a025bbfa05fc815db771206c036918ab88f0e11.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dwarf2out.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c4253f5..5d09f28 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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>
* doc/optinfo.texi: Fix order of nodes.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index d1ca4ba..e202fa7 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -18531,9 +18531,10 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
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). */