diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-15 10:05:29 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-15 10:05:29 +0000 |
commit | c6f3d74f12be89fe7c3aac78d4eb1c6c37acca0a (patch) | |
tree | 0ac43835c2737e56eea24a5649e54cf367a9bbbd /gcc/tree.c | |
parent | 92b84fc3af905ba90e3f1823e12e819f3f4b47d6 (diff) | |
download | gcc-c6f3d74f12be89fe7c3aac78d4eb1c6c37acca0a.tar.gz |
2009-06-15 Richard Guenther <rguenther@suse.de>
PR middle-end/40439
* tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148486 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 6ed29ca42d1..d68f08e9b6f 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -8499,7 +8499,8 @@ widest_int_cst_value (const_tree x) #if HOST_BITS_PER_WIDEST_INT > HOST_BITS_PER_WIDE_INT gcc_assert (HOST_BITS_PER_WIDEST_INT >= 2 * HOST_BITS_PER_WIDE_INT); - val |= TREE_INT_CST_HIGH (x) << HOST_BITS_PER_WIDE_INT; + val |= (((unsigned HOST_WIDEST_INT) TREE_INT_CST_HIGH (x)) + << HOST_BITS_PER_WIDE_INT); #else /* Make sure the sign-extended value will fit in a HOST_WIDE_INT. */ gcc_assert (TREE_INT_CST_HIGH (x) == 0 |