Re: [PATCH] Fix some undefined behavior spots in gcc sources (PR c/53968)

2012-08-13 Thread Richard Sandiford
Jakub Jelinek writes: > --- gcc/simplify-rtx.c.jj 2012-08-10 15:49:20.0 +0200 > +++ gcc/simplify-rtx.c2012-08-13 09:51:43.628508537 +0200 > @@ -66,7 +66,7 @@ static rtx simplify_binary_operation_1 ( > static rtx > neg_const_int (enum machine_mode mode, const_rtx i) > { > -

Re: [PATCH] Fix some undefined behavior spots in gcc sources (PR c/53968)

2012-08-13 Thread Richard Guenther
On Mon, Aug 13, 2012 at 2:01 PM, Jakub Jelinek wrote: > Hi! > > John Regehr discovered a couple of spots in GCC sources that invoke > undefined behavior during bootstrap/regtest, the following patch fixes most > of them. I couldn't reproduce the diagnostic.c failure and would like to > leave the

[PATCH] Fix some undefined behavior spots in gcc sources (PR c/53968)

2012-08-13 Thread Jakub Jelinek
Hi! John Regehr discovered a couple of spots in GCC sources that invoke undefined behavior during bootstrap/regtest, the following patch fixes most of them. I couldn't reproduce the diagnostic.c failure and would like to leave the ipa hunk to Honza, I think the probability/frequency code often mi