This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] fix calling convention output
- From: Eric Christopher <echristo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: jason at redhat dot com
- Date: Sun, 10 Oct 2004 20:21:22 -0700
- Subject: [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);
}