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]

Re: [patch, commited] for PR 32283


Hello,

> 	This patch causes bootstrap failures on powerpc-aix,
> sparc-solaris, powerpc-darwin, and appparently all big-endian targets.
> The failure is a SEGV at the first use of stage 2 cc1 compiling conftest.c
> during libgcc configure:

the following patch should fix the problem.

Zdenek

Index: fold-const.c
===================================================================
*** fold-const.c	(revision 128320)
--- fold-const.c	(working copy)
*************** extract_muldiv_1 (tree t, tree c, enum t
*** 6273,6279 ****
  	  && ((code == MULT_EXPR && tcode == EXACT_DIV_EXPR)
  	      || (tcode == MULT_EXPR
  		  && code != TRUNC_MOD_EXPR && code != CEIL_MOD_EXPR
! 		  && code != FLOOR_MOD_EXPR && code != ROUND_MOD_EXPR)))
  	{
  	  if (integer_zerop (const_binop (TRUNC_MOD_EXPR, op1, c, 0)))
  	    {
--- 6273,6280 ----
  	  && ((code == MULT_EXPR && tcode == EXACT_DIV_EXPR)
  	      || (tcode == MULT_EXPR
  		  && code != TRUNC_MOD_EXPR && code != CEIL_MOD_EXPR
! 		  && code != FLOOR_MOD_EXPR && code != ROUND_MOD_EXPR
! 		  && code != MULT_EXPR)))
  	{
  	  if (integer_zerop (const_binop (TRUNC_MOD_EXPR, op1, c, 0)))
  	    {


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