diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-10 16:43:39 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-10 16:43:39 +0000 |
commit | e2e9c55bf5046ef8b472712c739cef7f63f68d89 (patch) | |
tree | 7ccc0967b6f9a3aa999e7661ed16ff9f1bebe3cc /gcc/langhooks.h | |
parent | 3bda2a473df5e46a74ff8aa04c3f9fc0cfba6975 (diff) | |
download | gcc-e2e9c55bf5046ef8b472712c739cef7f63f68d89.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67713 138bc75d-0d04-0410-961f-82ee72b054a4
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 c3ec11ddbb3..fb648bf51ae 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. */ |