Re: [PATCH] aarch64: Fix UB in the compiler [PR100200]

2021-04-27 Thread Jakub Jelinek via Gcc-patches
On Tue, Apr 27, 2021 at 03:20:47PM +0100, Richard Earnshaw via Gcc-patches wrote: > > --- gcc/config/aarch64/aarch64.c.jj 2021-04-16 20:49:23.602579852 +0200 > > +++ gcc/config/aarch64/aarch64.c2021-04-26 16:40:46.835269671 +0200 > > @@ -10778,7 +10778,7 @@ aarch64_print_operand (FILE *f, rtx

Re: [PATCH] aarch64: Fix UB in the compiler [PR100200]

2021-04-27 Thread Richard Earnshaw via Gcc-patches
On 27/04/2021 14:16, Jakub Jelinek via Gcc-patches wrote: Hi! The following patch fixes UBs in the compiler when negativing a CONST_INT containing HOST_WIDE_INT_MIN. I've changed the spots where there wasn't an obvious earlier condition check or predicate that would fail for such CONST_INTs.

Re: [PATCH] aarch64: Fix UB in the compiler [PR100200]

2021-04-27 Thread Richard Sandiford via Gcc-patches
Jakub Jelinek writes: > Hi! > > The following patch fixes UBs in the compiler when negativing > a CONST_INT containing HOST_WIDE_INT_MIN. I've changed the spots where > there wasn't an obvious earlier condition check or predicate that > would fail for such CONST_INTs. > > Bootstrapped/regtested o

[PATCH] aarch64: Fix UB in the compiler [PR100200]

2021-04-27 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch fixes UBs in the compiler when negativing a CONST_INT containing HOST_WIDE_INT_MIN. I've changed the spots where there wasn't an obvious earlier condition check or predicate that would fail for such CONST_INTs. Bootstrapped/regtested on aarch64-linux, ok for trunk? 2021-