aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2013-11-18 14:52:42 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2013-11-18 14:52:42 +0000
commitb23b672e8d503ddd027a61807e3cc5ea9aaf2a4b (patch)
tree1e97001d3e31548fe90361c2b839af2a63bb08b5 /gcc/tree.c
parent386b1f1f416c9da018d47ccd371494b3a3a32870 (diff)
downloadgcc-b23b672e8d503ddd027a61807e3cc5ea9aaf2a4b.zip
gcc-b23b672e8d503ddd027a61807e3cc5ea9aaf2a4b.tar.gz
gcc-b23b672e8d503ddd027a61807e3cc5ea9aaf2a4b.tar.bz2
tree.h (host_integerp, [...]): Delete.
gcc/ * tree.h (host_integerp, tree_low_cst): Delete. * tree.c (host_integerp, tree_low_cst): Delete. From-SVN: r204963
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index f49f1fe..836db51 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -6970,26 +6970,6 @@ tree_int_cst_compare (const_tree t1, const_tree t2)
return 0;
}
-/* Return 1 if T is an INTEGER_CST that can be manipulated efficiently on
- the host. If POS is zero, the value can be represented in a single
- HOST_WIDE_INT. If POS is nonzero, the value must be non-negative and can
- be represented in a single unsigned HOST_WIDE_INT. */
-
-int
-host_integerp (const_tree t, int pos)
-{
- if (t == NULL_TREE)
- return 0;
-
- return (TREE_CODE (t) == INTEGER_CST
- && ((TREE_INT_CST_HIGH (t) == 0
- && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) >= 0)
- || (! pos && TREE_INT_CST_HIGH (t) == -1
- && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0
- && !TYPE_UNSIGNED (TREE_TYPE (t)))
- || (pos && TREE_INT_CST_HIGH (t) == 0)));
-}
-
/* Return true if T is an INTEGER_CST whose numerical value (extended
according to TYPE_UNSIGNED) fits in a signed HOST_WIDE_INT. */
@@ -7016,17 +6996,6 @@ tree_fits_uhwi_p (const_tree t)
&& TREE_INT_CST_HIGH (t) == 0);
}
-/* Return the HOST_WIDE_INT least significant bits of T if it is an
- INTEGER_CST and there is no overflow. POS is nonzero if the result must
- be non-negative. We must be able to satisfy the above conditions. */
-
-HOST_WIDE_INT
-tree_low_cst (const_tree t, int pos)
-{
- gcc_assert (host_integerp (t, pos));
- return TREE_INT_CST_LOW (t);
-}
-
/* T is an INTEGER_CST whose numerical value (extended according to
TYPE_UNSIGNED) fits in a signed HOST_WIDE_INT. Return that
HOST_WIDE_INT. */