This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed] fix calling convention output


Misread something. Feel like an idiot. Subroutine, subprogram bah.

Committed after consulting with jason.

-eric

-- 
Eric Christopher <echristo@redhat.com>

2004-10-10  Eric Christopher  <echristo@redhat.com>

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


Index: dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.553
diff -u -p -w -r1.553 dwarf2out.c
--- dwarf2out.c	6 Oct 2004 22:20:31 -0000	1.553
+++ dwarf2out.c	11 Oct 2004 03:16:35 -0000
@@ -11392,6 +11392,9 @@ gen_subprogram_die (tree decl, dw_die_re
 	}
 #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_d
   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);
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]