This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/31006] long double constant is read as double in i386
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2007 12:27:15 -0000
- Subject: [Bug target/31006] long double constant is read as double in i386
- References: <bug-31006-11045@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-03-01 12:27 -------
With gcc 4.1.2 and your testcase fixed to use %f for the double argument printf
I get
rguenther@murzim:/tmp> gcc -o t t.c -m32
rguenther@murzim:/tmp> ./t
long double = 3.141592653589793238512808959406
long double - double double = +3.141592653589793115997963468544
rguenther@murzim:/tmp> gcc -o t t.c
rguenther@murzim:/tmp> ./t
long double = 3.141592653589793238512808959406
long double - double double = +3.141592653589793115997963468544
same for 4.2.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31006