aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c2
-rw-r--r--gcc/tree.h2
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 010ed44..8dcf5b1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-09 Michael Matz <matz@suse.de>
+
+ * tree.h (fixed_zerop): Declare as taking a const_tree.
+ * tree.c (fixed_zerop): Take a const_tree.
+
2007-08-09 Ira Rosen <irar@il.ibm.com>
* tree-vect-transform.c (vectorizable_store): Remove call to
diff --git a/gcc/tree.c b/gcc/tree.c
index 9a08a68..af1e1bd 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -1460,7 +1460,7 @@ integer_nonzerop (const_tree expr)
/* Return 1 if EXPR is the fixed-point constant zero. */
int
-fixed_zerop (tree expr)
+fixed_zerop (const_tree expr)
{
return (TREE_CODE (expr) == FIXED_CST
&& double_int_zero_p (TREE_FIXED_CST (expr).data));
diff --git a/gcc/tree.h b/gcc/tree.h
index c7301fc..808897b 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4429,7 +4429,7 @@ extern tree num_ending_zeros (const_tree);
/* fixed_zerop (tree x) is nonzero if X is a fixed-point constant of
value 0. */
-extern int fixed_zerop (tree);
+extern int fixed_zerop (const_tree);
/* staticp (tree x) is nonzero if X is a reference to data allocated
at a fixed address in memory. Returns the outermost data. */