PR debug/60152
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Feb 2014 22:42:44 +0000 (22:42 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Feb 2014 22:42:44 +0000 (22:42 +0000)
* dwarf2out.c (gen_subprogram_die): Don't call
add_calling_convention_attribute if subr_die is old_die.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207770 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/dwarf2out.c

index c4253f5..5d09f28 100644 (file)
@@ -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.
index d1ca4ba..e202fa7 100644 (file)
@@ -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).  */