[Bug testsuite/79293] [7 regression] gcc.dg/tree-ssa/builtin-sprintf.c fails starting with r244953
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 30 21:49:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79293
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2017-01-30
Component|tree-optimization |testsuite
Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. The following is the test case on line 724:
RNG ( 3, 13, 14, "%Lg", 0.1L);
It expects the call to sprintf ("%Lg", 0.1L) to return a value between 3 and 13
but on powerpc64 it returns between 3 and 4 bytes ("0.1" when the argument is
rounded up and "0.0999999" when it's rounded down, with the decimal point
taking resulting in between 1 and 6 bytes in multibyte locales).
The test case needs to be relaxed for powerpc64. Let me take care of it.
More information about the Gcc-bugs
mailing list