https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67419
--- Comment #3 from Francois-Xavier Coudert <fxcoudert at gcc dot gnu.org> --- (In reply to r...@cebitec.uni-bielefeld.de from comment #2) > The result is identical for both the mainline libgfortran.so.3 and the > bundled gcc 4.8 libgfortran.so.3, so this might well be a libm bug > introduced in Solaris 12. What if you compile the following C source (with "gcc -lm") and run it? int main (void) { long double x; x = 789.1356; __builtin_printf ("%.30Lg\n", x); __builtin_printf ("%.30Lg\n", __builtin_sqrtl(x)); }