Re: [PATCH] adjust sprintf range for AIX QNaN output (PR 86571)

2018-08-04 Thread Martin Sebor
On 08/04/2018 04:25 PM, David Edelsohn wrote: On Sat, Aug 4, 2018, 18:19 Martin Sebor mailto:mse...@gmail.com>> wrote: On 08/02/2018 01:46 PM, Martin Sebor wrote: > The recently added test gcc.dg/torture/builtin-sprintf.c > to verify that the sprintf result computed by GCC matches

Re: [PATCH] adjust sprintf range for AIX QNaN output (PR 86571)

2018-08-04 Thread David Edelsohn
On Sat, Aug 4, 2018, 18:19 Martin Sebor wrote: > On 08/02/2018 01:46 PM, Martin Sebor wrote: > > The recently added test gcc.dg/torture/builtin-sprintf.c > > to verify that the sprintf result computed by GCC matches > > libc's for Infinity and NaN has been failing on AIX which > > formats NaN as

Re: [PATCH] adjust sprintf range for AIX QNaN output (PR 86571)

2018-08-04 Thread Martin Sebor
On 08/02/2018 01:46 PM, Martin Sebor wrote: The recently added test gcc.dg/torture/builtin-sprintf.c to verify that the sprintf result computed by GCC matches libc's for Infinity and NaN has been failing on AIX which formats NaN as either QNaN or SNaN, contrary to C/POSIX requirements. The

[PATCH] adjust sprintf range for AIX QNaN output (PR 86571)

2018-08-02 Thread Martin Sebor
The recently added test gcc.dg/torture/builtin-sprintf.c to verify that the sprintf result computed by GCC matches libc's for Infinity and NaN has been failing on AIX which formats NaN as either QNaN or SNaN, contrary to C/POSIX requirements. The attached tweak adjusts the result computed by GCC