aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gcc.gnu.org>2004-10-11 03:22:28 +0000
committerEric Christopher <echristo@gcc.gnu.org>2004-10-11 03:22:28 +0000
commit5c70192c1d006b8ca0f028aea3e88f0964f7b8b8 (patch)
treea14d34ffc03fd2ad4549f6240e334a4cc8f34526 /gcc/dwarf2out.c
parentb187901efacd685b07dc020ad8c47c73bd0da647 (diff)
downloadgcc-5c70192c1d006b8ca0f028aea3e88f0964f7b8b8.zip
gcc-5c70192c1d006b8ca0f028aea3e88f0964f7b8b8.tar.gz
gcc-5c70192c1d006b8ca0f028aea3e88f0964f7b8b8.tar.bz2
dwarf2out.c: Move attribute to subprogram declaration instead of subroutine type.
2004-10-10 Eric Christopher <echristo@redhat.com> * dwarf2out.c: Move attribute to subprogram declaration instead of subroutine type. From-SVN: r88868
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 4b976c1..500ab40 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -11392,6 +11392,9 @@ gen_subprogram_die (tree decl, dw_die_ref context_die)
}
#endif
}
+ /* Add the calling convention attribute if requested. */
+ add_calling_convention_attribute (subr_die, TREE_TYPE (decl));
+
}
/* Generate a DIE to represent a declared data object. */
@@ -11933,7 +11936,6 @@ gen_subroutine_type_die (tree type, dw_die_ref context_die)
equate_type_number_to_die (type, subr_die);
add_prototyped_attribute (subr_die, type);
add_type_attribute (subr_die, return_type, 0, 0, context_die);
- add_calling_convention_attribute (subr_die, type);
gen_formal_types_die (type, subr_die);
}