summaryrefslogtreecommitdiff
path: root/gcc/tree-dfa.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-07 11:28:42 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-07 11:28:42 +0000
commitfb60e6351aef88dc33fa5feef1287143be21d996 (patch)
treefa7bc704aeb513486b11125973782f84c699dff8 /gcc/tree-dfa.c
parent2dcf5fe1d268373e40d22e5fc4c656c97d181714 (diff)
downloadgcc-fb60e6351aef88dc33fa5feef1287143be21d996.tar.gz
2013-11-07 Richard Biener <rguenther@suse.de>
* tree-dfa.c (get_ref_base_and_extent): Fix casting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204505 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-dfa.c')
-rw-r--r--gcc/tree-dfa.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c
index c8b257ea290..a31a0a28161 100644
--- a/gcc/tree-dfa.c
+++ b/gcc/tree-dfa.c
@@ -569,7 +569,7 @@ get_ref_base_and_extent (tree exp, HOST_WIDE_INT *poffset,
&& (!bit_offset.fits_shwi ()
|| !host_integerp (TYPE_SIZE (TREE_TYPE (exp)), 1)
|| (bit_offset.to_shwi () + maxsize
- == (signed) TREE_INT_CST_LOW
+ == (HOST_WIDE_INT) TREE_INT_CST_LOW
(TYPE_SIZE (TREE_TYPE (exp))))))
maxsize = -1;
@@ -606,7 +606,8 @@ get_ref_base_and_extent (tree exp, HOST_WIDE_INT *poffset,
&& (!bit_offset.fits_shwi ()
|| !host_integerp (TYPE_SIZE (TREE_TYPE (exp)), 1)
|| (bit_offset.to_shwi () + maxsize
- == (signed) TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (exp))))))
+ == (HOST_WIDE_INT) TREE_INT_CST_LOW
+ (TYPE_SIZE (TREE_TYPE (exp))))))
maxsize = -1;
done: