summaryrefslogtreecommitdiff
path: root/gcc/tree-gimple.h
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-20 05:37:08 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-20 05:37:08 +0000
commitd03bd588586c9e46a8906c73e10c8661517ac65b (patch)
tree122db954d6114e9b5e9bf6c18c520145c59570fa /gcc/tree-gimple.h
parentb200b1468b2134e3ce3ec27f1730f8dd371352b4 (diff)
downloadgcc-d03bd588586c9e46a8906c73e10c8661517ac65b.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107244 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-gimple.h')
-rw-r--r--gcc/tree-gimple.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-gimple.h b/gcc/tree-gimple.h
index 5f7724b01b3..83c17fbad7a 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. */