[patch] Re: trapv question

2021-01-20 Thread Andrew MacLeod via Gcc-patches
(0); }    else if (child == -1) Is that the right thing to do? THanks Andrew Done... pushed commit 842afc4e289ed3fe69583672c1a180f268d73799 Author: Andrew MacLeod Date: Wed Jan 20 16:27:34 2021 -0500 Re: trapv question Adjust testcase to so the ADD that is expected

Re: trapv question

2021-01-20 Thread Richard Biener via Gcc-patches
On January 20, 2021 6:52:11 PM GMT+01:00, Andrew MacLeod wrote: >Im looking at the testcase gcc.dg/torture/ftrapv-2.c > >int i = 0x7fff; > >int main(void) >{ >   pid_t child = fork (); >   int status = 0; >   if (child == 0) >     { >   volatile int x = i + 1 < i; >   exit (0); >    

trapv question

2021-01-20 Thread Andrew MacLeod via Gcc-patches
Im looking at the testcase gcc.dg/torture/ftrapv-2.c int i = 0x7fff; int main(void) {   pid_t child = fork ();   int status = 0;   if (child == 0)     {   volatile int x = i + 1 < i;   exit (0);     } THis is failing with the new relational work... and I'm looking to understand wh