aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-12-02 14:50:32 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-12-02 14:50:32 +0000
commit7b2eca00295325f4029b71bee8263df7a1275091 (patch)
tree586bfb9ddbef4ac08f6963d13fa8e8c76959d631 /gcc/tree.c
parent694e5e4baebff76320ecbb0c119bc086126c4095 (diff)
downloadgcc-7b2eca00295325f4029b71bee8263df7a1275091.zip
gcc-7b2eca00295325f4029b71bee8263df7a1275091.tar.gz
gcc-7b2eca00295325f4029b71bee8263df7a1275091.tar.bz2
tree.h (tree_invariant_p): Declare.
2015-12-02 Richard Biener <rguenther@suse.de> * tree.h (tree_invariant_p): Declare. * tree.c (tree_invariant_p): Export. * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never create SAVE_EXPRs but reject patterns if we would need to. From-SVN: r231178
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 4f7ce7e..587bd74 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3231,8 +3231,6 @@ decl_address_ip_invariant_p (const_tree op)
not handle arithmetic; that's handled in skip_simple_arithmetic and
tree_invariant_p). */
-static bool tree_invariant_p (tree t);
-
static bool
tree_invariant_p_1 (tree t)
{
@@ -3282,7 +3280,7 @@ tree_invariant_p_1 (tree t)
/* Return true if T is function-invariant. */
-static bool
+bool
tree_invariant_p (tree t)
{
tree inner = skip_simple_arithmetic (t);