From e076f71a38f9945415a6dd2b037b20c1de9b6d3b Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Tue, 10 Jun 2003 16:43:39 +0000 Subject: langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New. 2003-05-21 Andrew Haley * 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 * lang.c (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New. (java_decl_ok_for_sibcall): New. From-SVN: r67713 --- gcc/langhooks.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/langhooks.h') 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. */ -- cgit v1.1