diff options
author | Andrew Haley <aph@redhat.com> | 2003-06-10 16:43:39 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2003-06-10 16:43:39 +0000 |
commit | e076f71a38f9945415a6dd2b037b20c1de9b6d3b (patch) | |
tree | 7ccc0967b6f9a3aa999e7661ed16ff9f1bebe3cc /gcc/langhooks-def.h | |
parent | e7e09ad8f27d4a239b2109f719e69753e4f3abc7 (diff) | |
download | gcc-e076f71a38f9945415a6dd2b037b20c1de9b6d3b.tar.gz |
langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
2003-05-21 Andrew Haley <aph@redhat.com>
* langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
(LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
(lhd_decl_ok_for_sibcall): New.
* langhooks.c (lhd_decl_ok_for_sibcall): New.
* langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
* calls.c (expand_call): Check lang_hook before generating a
sibcall.
2003-05-21 Andrew Haley <aph@redhat.com>
* lang.c (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
(java_decl_ok_for_sibcall): New.
From-SVN: r67713
Diffstat (limited to 'gcc/langhooks-def.h')
-rw-r--r-- | gcc/langhooks-def.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/langhooks-def.h b/gcc/langhooks-def.h index 5a752bed119..8e6f8424c8a 100644 --- a/gcc/langhooks-def.h +++ b/gcc/langhooks-def.h @@ -64,6 +64,7 @@ extern bool lhd_can_use_bit_fields_p PARAMS ((void)); extern bool lhd_warn_unused_global_decl PARAMS ((tree)); extern void lhd_incomplete_type_error PARAMS ((tree, tree)); extern tree lhd_type_promotes_to PARAMS ((tree)); +extern bool lhd_decl_ok_for_sibcall PARAMS ((tree)); extern tree lhd_expr_size PARAMS ((tree)); extern size_t lhd_tree_size PARAMS ((enum tree_code)); @@ -224,6 +225,7 @@ int lhd_tree_dump_type_quals PARAMS ((tree)); #define LANG_HOOKS_GETDECLS getdecls #define LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL lhd_warn_unused_global_decl #define LANG_HOOKS_WRITE_GLOBALS write_global_declarations +#define LANG_HOOKS_DECL_OK_FOR_SIBCALL lhd_decl_ok_for_sibcall #define LANG_HOOKS_DECLS { \ LANG_HOOKS_PUSHLEVEL, \ @@ -234,7 +236,8 @@ int lhd_tree_dump_type_quals PARAMS ((tree)); LANG_HOOKS_PUSHDECL, \ LANG_HOOKS_GETDECLS, \ LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL, \ - LANG_HOOKS_WRITE_GLOBALS \ + LANG_HOOKS_WRITE_GLOBALS, \ + LANG_HOOKS_DECL_OK_FOR_SIBCALL, \ } /* The whole thing. The structure is defined in langhooks.h. */ |