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.h | |
parent | e7e09ad8f27d4a239b2109f719e69753e4f3abc7 (diff) | |
download | gcc-e076f71a38f9945415a6dd2b037b20c1de9b6d3b.zip gcc-e076f71a38f9945415a6dd2b037b20c1de9b6d3b.tar.gz gcc-e076f71a38f9945415a6dd2b037b20c1de9b6d3b.tar.bz2 |
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.h')
-rw-r--r-- | gcc/langhooks.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h index c3ec11d..fb648bf 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -180,6 +180,9 @@ struct lang_hooks_for_decls /* Obtain a list of globals and do final output on them at end of compilation */ void (*final_write_globals) PARAMS ((void)); + + /* True if this decl may be called via a sibcall. */ + bool (*ok_for_sibcall) PARAMS ((tree)); }; /* Language-specific hooks. See langhooks-def.h for defaults. */ |