dwarf2out.c: Move attribute to subprogram declaration instead of subroutine type.
authorEric Christopher <echristo@gcc.gnu.org>
Mon, 11 Oct 2004 03:22:28 +0000 (03:22 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Mon, 11 Oct 2004 03:22:28 +0000 (03:22 +0000)
2004-10-10  Eric Christopher  <echristo@redhat.com>

* dwarf2out.c: Move attribute to subprogram declaration
instead of subroutine type.

From-SVN: r88868

gcc/ChangeLog
gcc/dwarf2out.c

index a0c99cb..92e09b7 100644 (file)
@@ -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,
 
 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.
 
        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.
        (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
index 4b976c1..500ab40 100644 (file)
@@ -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);
 }