diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2008-05-26 18:23:38 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2008-05-26 18:23:38 +0000 |
commit | ba977e1ad972fdad98e39864d12f1d204935af2f (patch) | |
tree | 160cb158346c46e3b94ea89324a4be86274f11d8 /gcc/tree-gimple.h | |
parent | 4d492420f6e180fbce3e5616cfc10a322f39630c (diff) | |
download | gcc-ba977e1ad972fdad98e39864d12f1d204935af2f.zip gcc-ba977e1ad972fdad98e39864d12f1d204935af2f.tar.gz gcc-ba977e1ad972fdad98e39864d12f1d204935af2f.tar.bz2 |
re PR tree-optimization/36329 (latent problem with tree inlining)
PR tree-optimization/36329
* tree.h (CALL_CANNOT_INLINE_P): Add access check.
* tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
* cgraphbuild.c (initialize_inline_failed): Use the latter
macro in lieu of the former.
* ipa-inline.c (cgraph_mark_inline): Likewise.
(cgraph_decide_inlining_of_small_function): Likewise.
(cgraph_decide_inlining): Likewise.
(cgraph_decide_inlining_incrementally): Likewise.
From-SVN: r135954
Diffstat (limited to 'gcc/tree-gimple.h')
-rw-r--r-- | gcc/tree-gimple.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-gimple.h b/gcc/tree-gimple.h index 2c4aa2d..3864d5d 100644 --- a/gcc/tree-gimple.h +++ b/gcc/tree-gimple.h @@ -96,6 +96,9 @@ extern bool is_gimple_non_addressable (tree t); extern bool is_gimple_call_addr (tree); /* If T makes a function call, returns the CALL_EXPR operand. */ extern tree get_call_expr_in (tree t); +/* Returns true iff T contains a CALL_EXPR not suitable for inlining. */ +#define CALL_STMT_CANNOT_INLINE_P(T) \ + CALL_CANNOT_INLINE_P (get_call_expr_in (T)) extern void recalculate_side_effects (tree); |