MacDue wrote:

> > Have you checked the flang driver? Is it not applicable there since errno 
> > is not used in Flang?
> 
> We don't support the gfortran extension for checking errno in flang and I 
> can't see another way of checking it portably, so I wonder if we should just 
> have this flag on by default in flang in general? It shouldn't provide any 
> observable change and might increase performance as far as I can tell.

As far as I can tell from looking at the `flang` driver, it already defaults to 
the equivalent of `-fno-math-errno` (looks like there's no way to set 
`-fmath-errno` at all). That's corroborated by looking at the LLVM IR for a 
call to `sin` which uses the non-errno setting  LLVM intrinsic by default: 
https://godbolt.org/z/dvTvP3vPr.

https://github.com/llvm/llvm-project/pull/112580
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to