This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/31006] long double constant is read as double in i386



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]