Commit 5c70192c by Eric Christopher

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
parent b187901e
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,
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment