aboutsummaryrefslogtreecommitdiff
path: root/gcc/target.h
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/target.h
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/target.h')
-rw-r--r--gcc/target.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index 9f766ae..49a7f9d 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -488,6 +488,13 @@ struct gcc_target
the port wishes to automatically clobber for all asms. */
tree (* md_asm_clobbers) (tree);
+ /* This target hook allows the backend to specify a calling convention
+ in the debug information. This function actually returns an
+ enum dwarf_calling_convention, but because of forward declarations
+ and not wanting to include dwarf2.h everywhere target.h is included
+ the function is being declared as an int. */
+ int (* dwarf_calling_convention) (tree);
+
/* Functions relating to calls - argument passing, returns, etc. */
struct calls {
bool (*promote_function_args) (tree fntype);