This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] RFA add dwarf calling convention support
- From: Richard Henderson <rth at redhat dot com>
- To: Eric Christopher <echristo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 Sep 2004 15:30:06 -0700
- Subject: Re: [patch] RFA add dwarf calling convention support
- References: <1096581377.20484.23.camel@localhost.localdomain>
On Thu, Sep 30, 2004 at 02:56:17PM -0700, Eric Christopher wrote:
> + value = targetm.dwarf_calling_convention (type);
> + if (value)
> + add_AT_unsigned (subr_die, DW_AT_calling_convention, value);
> + else
> + add_AT_unsigned (subr_die, DW_AT_calling_convention, DW_CC_normal);
I had asked for value == 0 to mean "i don't know", which
should mean "don't add DW_AT_calling_convention".
If we do know, then dwarf_calling_convention should just
return DW_CC_normal for normal functions.
> +int
> +default_dwarf_calling_convention (tree func ATTRIBUTE_UNUSED)
> +{
> + return 0;
> +}
hook_int_tree_0, since there's nothing about this routine that
is specific to dwarf or calling conventions at all.
You may want a hook_dwarf_normal_calling_convention that always
returns DW_CC_normal, but that's something else.
> +Define this to enable the dwarf attribute DW_AT_calling_convention to
> +be emitted for each function. Instead of an integer return the enum
> +value for the DW_CC_ tag.
Need some @code{} markup here.
r~