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.c | |
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.c')
-rw-r--r-- | gcc/langhooks.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index d4f3e3584d6..2bc91481eee 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -469,6 +469,16 @@ lhd_tree_size (c) return 0; } +/* Return true if decl, which is a function decl, may be called by a + sibcall. */ + +bool +lhd_decl_ok_for_sibcall (decl) + tree decl ATTRIBUTE_UNUSED; +{ + return true; +} + /* lang_hooks.decls.final_write_globals: perform final processing on global variables. */ void |