aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog11
-rw-r--r--gcc/dwarf2out.c4
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a0c99cb..92e09b7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-10 Eric Christopher <echristo@redhat.com>
+
+ * dwarf2out.c: Move attribute to subprogram declaration
+ instead of subroutine type.
+
2004-10-10 Kazu Hirata <kazu@cs.umass.edu>
* basic-block.h: Remove the prototypes for can_hoist_insn_p,
@@ -146,7 +151,7 @@
2004-10-08 Andreas Krebbel <krebbel1@de.ibm.com>
- * config/s390/s390.c (s390_register_info): Don't save fprs for
+ * config/s390/s390.c (s390_register_info): Don't save fprs for
-msoft-float.
(s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
@@ -286,7 +291,7 @@
UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
- UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
+ UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
UNSPEC_VCONDU_V16QI): New constant defines.
(vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
vconduv16qi): New patterns.
@@ -297,7 +302,7 @@
(rs6000_emit_vector_compare): Same.
(rs6000_emit_vector_select): Same.
(INSN_NOT_AVAILABLE): New.
-
+
2004-10-07 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimization/17749
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);
}