Re: Problem with accessing built-ins from Fortran front-end

2014-09-26 Thread Joseph S. Myers
On Fri, 26 Sep 2014, Jakub Jelinek wrote: > > One related question: the __builtin_signbit is not type generic, is there > > any reason for it not to be? Is there any reason for it not to be? I ask > > I guess history, builtins that were added earlier when we didn't have any > typegeneric builti

Re: Problem with accessing built-ins from Fortran front-end

2014-09-26 Thread Jakub Jelinek
On Fri, Sep 26, 2014 at 11:07:28AM +0200, FX wrote: > > Thus, the middle-end assumes that if you have __builtin_{isfinite,isnormal}, > > you also have __builtin_is{less,greater}equal builtins too. > > Many thanks to both of you! I wasn’t looking into the right place at all. I > defined them, and

Re: Problem with accessing built-ins from Fortran front-end

2014-09-26 Thread FX
> Thus, the middle-end assumes that if you have __builtin_{isfinite,isnormal}, > you also have __builtin_is{less,greater}equal builtins too. Many thanks to both of you! I wasn’t looking into the right place at all. I defined them, and now it works. One related question: the __builtin_signbit is

Re: Problem with accessing built-ins from Fortran front-end

2014-09-26 Thread Jakub Jelinek
On Fri, Sep 26, 2014 at 10:29:57AM +0200, FX wrote: > Hi, > > I’m trying to make the Fortran front-end emit calls to some builtins we don’t > currently use (isfinite, isnormal). However, trying to use the same code as > isnan doesn’t work at all. Our gfc_define_builtin does three things: > >

Re: Problem with accessing built-ins from Fortran front-end

2014-09-26 Thread Richard Biener
On Fri, Sep 26, 2014 at 10:29 AM, FX wrote: > Hi, > > I’m trying to make the Fortran front-end emit calls to some builtins we don’t > currently use (isfinite, isnormal). However, trying to use the same code as > isnan doesn’t work at all. Our gfc_define_builtin does three things: > > decl = ad

Problem with accessing built-ins from Fortran front-end

2014-09-26 Thread FX
Hi, I’m trying to make the Fortran front-end emit calls to some builtins we don’t currently use (isfinite, isnormal). However, trying to use the same code as isnan doesn’t work at all. Our gfc_define_builtin does three things: decl = add_builtin_function (name, type, code, BUILT_IN_NORMAL, li