[Bug libc/13240] _Qp_itoq produces wrong value on Linux/SPARC64

davem at davemloft dot net sourceware-bugzilla@sourceware.org
Fri Oct 7 19:47:00 GMT 2011


http://sourceware.org/bugzilla/show_bug.cgi?id=13240

David S. Miller <davem at davemloft dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |UNCONFIRMED
     Ever Confirmed|1                           |0

--- Comment #4 from David S. Miller <davem at davemloft dot net> 2011-10-07 19:46:45 UTC ---
Using both -m32 and -m64 your test case works perfectly fine for me.

davem@firepit:~/src/GIT/GLIBC/build-sparcv9-multiarch$ cat test.c
#include <stdio.h>
int a = 1;
int b = -1;
long double ll = 2.718281828459L;
volatile long double lla;
volatile long double llb;
int main ()
{
  lla += a * ll;
  llb += b * ll;
  printf ("lla=%Lg, llb=%Lg\n", lla, llb);
  return 0;
}
davem@firepit:~/src/GIT/GLIBC/build-sparcv9-multiarch$ gcc -m32 -O2 -o test
test.c
davem@firepit:~/src/GIT/GLIBC/build-sparcv9-multiarch$ ./test
lla=2.71828, llb=-2.71828
davem@firepit:~/src/GIT/GLIBC/build-sparcv9-multiarch$ gcc -m64 -O2 -o test
test.c
davem@firepit:~/src/GIT/GLIBC/build-sparcv9-multiarch$ ./test
lla=2.71828, llb=-2.71828
davem@firepit:~/src/GIT/GLIBC/build-sparcv9-multiarch$

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list