diff options
author | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-09 14:00:21 +0000 |
---|---|---|
committer | crux <crux@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-09 14:00:21 +0000 |
commit | 0a893c29f8f2c3ad8542047218b2c1d5a9337046 (patch) | |
tree | 0c9ea6c13240638f450e4b7c92af4127356208c0 /gcc/calls.c | |
parent | 2c440a1334f71402905241113ec103d0e92d165e (diff) | |
download | gcc-0a893c29f8f2c3ad8542047218b2c1d5a9337046.tar.gz |
Include function.h in most files. Remove most of the global variables
duplicated in function.h. Add accessor macros for them which access
current_function. Delete INLINE_HEADER rtx and related code, replace
with code using struct function to store inlining related data.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28626 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index d0153a3d124..b646be8ba82 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -24,6 +24,7 @@ Boston, MA 02111-1307, USA. */ #include "tree.h" #include "flags.h" #include "expr.h" +#include "function.h" #include "regs.h" #include "insn-flags.h" #include "toplev.h" @@ -218,8 +219,7 @@ calls_function_1 (exp, which) if ((DECL_BUILT_IN (fndecl) && DECL_FUNCTION_CODE (fndecl) == BUILT_IN_ALLOCA) || (DECL_SAVED_INSNS (fndecl) - && (FUNCTION_FLAGS (DECL_SAVED_INSNS (fndecl)) - & FUNCTION_FLAGS_CALLS_ALLOCA))) + && DECL_SAVED_INSNS (fndecl)->calls_alloca)) return 1; } @@ -1649,7 +1649,7 @@ expand_call (exp, target, ignore) && fndecl != current_function_decl && DECL_INLINE (fndecl) && DECL_SAVED_INSNS (fndecl) - && RTX_INTEGRATED_P (DECL_SAVED_INSNS (fndecl))) + && DECL_SAVED_INSNS (fndecl)->inlinable) is_integrable = 1; else if (! TREE_ADDRESSABLE (fndecl)) { @@ -1786,11 +1786,11 @@ expand_call (exp, target, ignore) rtx insn, seq; /* Look for a call in the inline function code. - If OUTGOING_ARGS_SIZE (DECL_SAVED_INSNS (fndecl)) is + If DECL_SAVED_INSNS (fndecl)->outgoing_args_size is nonzero then there is a call and it is not necessary to scan the insns. */ - if (OUTGOING_ARGS_SIZE (DECL_SAVED_INSNS (fndecl)) == 0) + if (DECL_SAVED_INSNS (fndecl)->outgoing_args_size == 0) for (insn = first_insn; insn; insn = NEXT_INSN (insn)) if (GET_CODE (insn) == CALL_INSN) break; @@ -1814,7 +1814,7 @@ expand_call (exp, target, ignore) value of reg_parm_stack_space is wrong, but gives correct results on all supported machines. */ - int adjust = (OUTGOING_ARGS_SIZE (DECL_SAVED_INSNS (fndecl)) + int adjust = (DECL_SAVED_INSNS (fndecl)->outgoing_args_size + reg_parm_stack_space); start_sequence (); |