This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR40439


This fixes the bootstrap failures on 32bit HWI hosts.

Committed to trunk.

Richard.

2009-06-15  Richard Guenther  <rguenther@suse.de>

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

Index: gcc/tree.c
===================================================================
*** gcc/tree.c	(revision 148485)
--- gcc/tree.c	(working copy)
*************** widest_int_cst_value (const_tree x)
*** 8499,8505 ****
  
  #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;
  #else
    /* Make sure the sign-extended value will fit in a HOST_WIDE_INT.  */
    gcc_assert (TREE_INT_CST_HIGH (x) == 0
--- 8499,8506 ----
  
  #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 |= (((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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]