aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorKenneth Zadeck <zadeck@naturalbridge.com>2014-05-06 16:25:05 +0000
committerMike Stump <mrs@gcc.gnu.org>2014-05-06 16:25:05 +0000
commit807e902eea17f3132488c256c963823976b2348c (patch)
treee5e1af94eb1502ba893bd6ce4a11f68877ff62a9 /gcc/tree-eh.c
parent6122336c832dc4dfedc49279549caddce86306ff (diff)
downloadgcc-807e902eea17f3132488c256c963823976b2348c.zip
gcc-807e902eea17f3132488c256c963823976b2348c.tar.gz
gcc-807e902eea17f3132488c256c963823976b2348c.tar.bz2
Merge in wide-int.
From-SVN: r210113
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index c1e0e77..624f277 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -2652,14 +2652,14 @@ tree_could_trap_p (tree expr)
if (TREE_CODE (TREE_OPERAND (expr, 0)) == ADDR_EXPR)
{
tree base = TREE_OPERAND (TREE_OPERAND (expr, 0), 0);
- double_int off = mem_ref_offset (expr);
- if (off.is_negative ())
+ offset_int off = mem_ref_offset (expr);
+ if (wi::neg_p (off, SIGNED))
return true;
if (TREE_CODE (base) == STRING_CST)
- return double_int::from_uhwi (TREE_STRING_LENGTH (base)).ule (off);
+ return wi::leu_p (TREE_STRING_LENGTH (base), off);
else if (DECL_SIZE_UNIT (base) == NULL_TREE
|| TREE_CODE (DECL_SIZE_UNIT (base)) != INTEGER_CST
- || tree_to_double_int (DECL_SIZE_UNIT (base)).ule (off))
+ || wi::leu_p (wi::to_offset (DECL_SIZE_UNIT (base)), off))
return true;
/* Now we are sure the first byte of the access is inside
the object. */