diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-25 17:42:39 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-25 17:42:39 +0000 |
commit | e6f295fbb08ee5dc2d0b2d08d71ff824f952ef91 (patch) | |
tree | b21f72610d0ef15b8f89e3f3117d170b5ca05f55 /gcc/integrate.c | |
parent | 34863464d2ceedf20ddcf52e80dadafd837170ec (diff) | |
download | gcc-e6f295fbb08ee5dc2d0b2d08d71ff824f952ef91.tar.gz |
* function.h (struct function): New field calls_constant_p.
(current_function_calls_constant_p): New macro for above.
* function.c (prepare_function_start): Initialize calls_eh_return
and calls_constant_p.
* builtins.c (expand_builtin_constant_p): Set calls_constant_p.
* toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
when the current_function_calls_constant_p.
* integrate.c (expand_inline_function): Set calls_constant_p if
the function being inlined has calls_constant_p set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61786 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index 6eef65038fc..8ab4280efc9 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -899,6 +899,11 @@ expand_inline_function (fndecl, parms, target, ignore, type, if (inl_f->needs_context) static_chain_value = lookup_static_chain (fndecl); + /* If the inlined function calls __builtin_constant_p, then we'll + need to call purge_builtin_constant_p on this function. */ + if (inl_f->calls_constant_p) + current_function_calls_constant_p = 1; + if (GET_CODE (parm_insns) == NOTE && NOTE_LINE_NUMBER (parm_insns) > 0) { |