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: PR 61084: SPARC fallout from wide-int merge


On May 7, 2014, at 2:26 AM, Richard Sandiford <rdsandiford@googlemail.com> wrote:
> The DImode constant spliiter assigned the result of trunc_int_for_mode
> to an unsigned int rather than a HOST_WIDE_INT.  This then produced const_ints
> that were zero-extended rather than sign-extended and tripped the assert:
> 
> 	gcc_checking_assert (INTVAL (x.first)
> 			     == sext_hwi (INTVAL (x.first), precision)
> 			     || (x.second == BImode && INTVAL (x.first) == 1));
> 
> The other hunks are just by inspection, but I think gen_int_mode is
> preferred over GEN_INT when the mode is obvious.
> 
> Tested by Rainer, who says that the boostrap now completes.
> OK to install?

Ok.

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