diff options
author | Richard Henderson <rth@redhat.com> | 2005-11-19 21:37:08 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-11-19 21:37:08 -0800 |
commit | 688e936d4666ef4f439810756d094a61b6f22186 (patch) | |
tree | 122db954d6114e9b5e9bf6c18c520145c59570fa /gcc/tree-gimple.h | |
parent | 7ab1122a479d64423c6ad069793f41666f9fd3aa (diff) | |
download | gcc-688e936d4666ef4f439810756d094a61b6f22186.zip gcc-688e936d4666ef4f439810756d094a61b6f22186.tar.gz gcc-688e936d4666ef4f439810756d094a61b6f22186.tar.bz2 |
re PR tree-optimization/24665 (internal compiler error: get_indirect_ref_operands)
PR tree-opt/24665
* tree-gimple.c (is_gimple_id): Export.
* tree-gimple.h (is_gimple_id): Declare.
* tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
(get_default_value): Use it.
(maybe_fold_stmt_indirect): Likewise.
From-SVN: r107244
Diffstat (limited to 'gcc/tree-gimple.h')
-rw-r--r-- | gcc/tree-gimple.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-gimple.h b/gcc/tree-gimple.h index 5f7724b..83c17fb 100644 --- a/gcc/tree-gimple.h +++ b/gcc/tree-gimple.h @@ -53,6 +53,8 @@ extern bool is_gimple_formal_tmp_var (tree); extern bool is_gimple_formal_tmp_reg (tree); /* Returns true iff T is any sort of variable. */ extern bool is_gimple_variable (tree); +/* Returns true iff T is any sort of symbol. */ +extern bool is_gimple_id (tree); /* Returns true iff T is a variable or an INDIRECT_REF (of a variable). */ extern bool is_gimple_min_lval (tree); /* Returns true iff T is something whose address can be taken. */ |