https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77457
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |easyhack --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is an easy hack. In assemble_real (in varasm.c), after the loop that calls assemble_integer, print out the value of d (REAL_VALUE_TYPE). Note GCC is smart and does not use the host floating point (I don't know if clang/llvm does that or not). Something like this to do the printing (comes from tree-pretty-print.c): if (REAL_VALUE_ISINF (d)) pp_string (pp, REAL_VALUE_NEGATIVE (d) ? " -Inf" : " Inf"); else if (REAL_VALUE_ISNAN (d)) pp_string (pp, " Nan"); else { char string[100]; real_to_decimal (string, &d, sizeof (string), 0, 1); pp_string (pp, string); }