aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorEric Christopher <echristo@gcc.gnu.org>2004-10-01 05:08:59 +0000
committerEric Christopher <echristo@gcc.gnu.org>2004-10-01 05:08:59 +0000
commita1c496cb437080bd861ea5fed4220514e64c915e (patch)
treec068b7bf095d7380d889d59915274cc18faad4a9 /gcc/doc
parent049bc4044531a146d278dd63ff0ad226c239424c (diff)
downloadgcc-a1c496cb437080bd861ea5fed4220514e64c915e.zip
gcc-a1c496cb437080bd861ea5fed4220514e64c915e.tar.gz
gcc-a1c496cb437080bd861ea5fed4220514e64c915e.tar.bz2
dwarf2.h (dwarf_calling_convention): Add enum for renesas sh abi.
2004-09-30 Eric Christopher <echristo@redhat.com> * dwarf2.h (dwarf_calling_convention): Add enum for renesas sh abi. * dwarf2out.c (add_calling_convention_attribute): New function. (gen_subroutine_type_die): Use. * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook. * target.h (gcc_target): Add dwarf_calling_convention. * hooks.c (hook_int_tree_0): New function. * hooks.h: Prototype. * config/sh/sh.c: Include dwarf2.h. (sh_dwarf_calling_convention): New function. (TARGET_DWARF_CALLING_CONVENTION): Use. * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document. From-SVN: r88382
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/tm.texi8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index f72713c..8208a89 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -3747,7 +3747,7 @@ known to be passed by reference. The hook should return true if the
function argument should be copied by the callee instead of copied
by the caller.
-For any argument for which the hook returns true, if it can be
+For any argument for which the hook returns true, if it can be
determined that the argument is not modified, then a copy need
not be generated.
@@ -8061,6 +8061,12 @@ for SDB in response to the @option{-g} option.
Define this macro if GCC should produce dwarf version 2 format
debugging output in response to the @option{-g} option.
+@deftypefn {Target Hook} int TARGET_DWARF_CALLING_CONVENTION (tree @var{function})
+Define this to enable the dwarf attribute @code{DW_AT_calling_convention} to
+be emitted for each function. Instead of an integer return the enum
+value for the @code{DW_CC_} tag.
+@end deftypefn
+
To support optional call frame debugging information, you must also
define @code{INCOMING_RETURN_ADDR_RTX} and either set
@code{RTX_FRAME_RELATED_P} on the prologue insns if you use RTL for the