Re: [PATCH] Fix IFN_ATOMIC* handling with -fnon-call-exceptions (PR middle-end/79805)

2017-03-03 Thread Richard Biener
On Fri, 3 Mar 2017, Jakub Jelinek wrote: > On Fri, Mar 03, 2017 at 09:21:55AM +0100, Richard Biener wrote: > > > --- gcc/gimple-fold.c.jj 2017-02-07 16:40:45.0 +0100 > > > +++ gcc/gimple-fold.c 2017-03-02 16:04:51.304850077 +0100 > > > @@ -3533,6 +3533,8 @@

Re: [PATCH] Fix IFN_ATOMIC* handling with -fnon-call-exceptions (PR middle-end/79805)

2017-03-03 Thread Jakub Jelinek
On Fri, Mar 03, 2017 at 09:21:55AM +0100, Richard Biener wrote: > > --- gcc/gimple-fold.c.jj2017-02-07 16:40:45.0 +0100 > > +++ gcc/gimple-fold.c 2017-03-02 16:04:51.304850077 +0100 > > @@ -3533,6 +3533,8 @@ fold_builtin_atomic_compare_exchange (gi > >tree itype = TREE_VALUE

Re: [PATCH] Fix IFN_ATOMIC* handling with -fnon-call-exceptions (PR middle-end/79805)

2017-03-03 Thread Richard Biener
On Thu, 2 Mar 2017, Jakub Jelinek wrote: > Hi! > > The __atomic/__sync builtins have nothrow conditional on > -fnon-call-exceptions, but internal fns have right now only constant flags. > As per discussions on IRC, this patch removes ECF_NOTHROW from those 4 ifns > and instead calls

[PATCH] Fix IFN_ATOMIC* handling with -fnon-call-exceptions (PR middle-end/79805)

2017-03-02 Thread Jakub Jelinek
Hi! The __atomic/__sync builtins have nothrow conditional on -fnon-call-exceptions, but internal fns have right now only constant flags. As per discussions on IRC, this patch removes ECF_NOTHROW from those 4 ifns and instead calls gimple_call_set_nothrow when creating those to say if it can or