From: Eric Christopher Date: Mon, 11 Oct 2004 03:22:28 +0000 (+0000) Subject: dwarf2out.c: Move attribute to subprogram declaration instead of subroutine type. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c70192c1d006b8ca0f028aea3e88f0964f7b8b8;p=platform%2Fupstream%2Fgcc.git dwarf2out.c: Move attribute to subprogram declaration instead of subroutine type. 2004-10-10 Eric Christopher * dwarf2out.c: Move attribute to subprogram declaration instead of subroutine type. From-SVN: r88868 --- 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 + + * dwarf2out.c: Move attribute to subprogram declaration + instead of subroutine type. + 2004-10-10 Kazu Hirata * basic-block.h: Remove the prototypes for can_hoist_insn_p, @@ -146,7 +151,7 @@ 2004-10-08 Andreas Krebbel - * 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 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); }