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]

[PR middle-end/81931] do not pass 0 precision in get_nonzero_bits


As discussed in the PR...

CCP is passing a precision of 0 to get_nonzero_bits for complex
numbers.  With my last wide_int sign extension patch, the sign
extension of -1 with a precision of 0 returns 0, whereas it previously
was preturning all ones.  The attached patch calls element_precision,
to avoid getting a precision of 0.

Segher tested this patch on ppc64-linux {-m32,-m64}, and it fixes the
ppc64 bootstrap problems.

OK?
Aldy

Attachment: curr
Description: Binary data


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