https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109378
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Summary|improve __builtin_sqrt |new builtin like | |__builtin_sqrt but does not | |set errno Status|UNCONFIRMED |RESOLVED --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Then there is nothing to be done here. GCC is doing the correct thing. It is inlining the error path for better optimizations. Since you don't want to use another flag or another option, or even another builtin, there is nothing to be done here. It just sounds like you don't want to program in C/C++ because of these constraints.