https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109294
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #1 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Here GCC produces more precise value at compile time (as MPFR is used for floating evaluation), while Glibc produces less precise value at runtime. The C standard allows exp to be not correctly rounded (N3054 F.5 para 1), i. e. several ULPs of error is allowed. So there is no way to predict what Glibc (or another Glibc) will produce at runtime. I see nothing we can do here.