Skip to content

Commit

Permalink
2009-06-15 Richard Guenther <[email protected]>
Browse files Browse the repository at this point in the history
	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
  • Loading branch information
rguenth committed Jun 15, 2009
1 parent 92b84fc commit c6f3d74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2009-06-15 Richard Guenther <[email protected]>

PR middle-end/40439
* tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.

2009-06-14 Andreas Krebbel <[email protected]>

* tree-ssa-math-opts.c: Remove extra divide.
Expand Down
3 changes: 2 additions & 1 deletion gcc/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6f3d74

Please sign in to comment.