Re: [PATCH] Another undef behavior fix

2014-03-26 Thread Richard Biener
On March 26, 2014 4:57:28 PM CET, Jakub Jelinek wrote: >Hi! > >Doing low = -low; on signed HOST_WIDE_INT results in undefined behavior >if the low HWI is LONG_LONG_MIN. Fixed thusly, ok for trunk? OK. Thanks, Richard. >2014-03-26 Jakub Jelinek > > PR other/59545 > * real.c (real_

[PATCH] Another undef behavior fix

2014-03-26 Thread Jakub Jelinek
Hi! Doing low = -low; on signed HOST_WIDE_INT results in undefined behavior if the low HWI is LONG_LONG_MIN. Fixed thusly, ok for trunk? 2014-03-26 Jakub Jelinek PR other/59545 * real.c (real_to_integer2): Change type of low to UHWI. --- gcc/real.c.jj 2014-01-03 11:40: