[Bug target/63352] problem with fmt_g0_1.f08 on i386-pc-solaris2.11

richard at netbsd dot org gcc-bugzilla@gcc.gnu.org
Fri Oct 10 07:12:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63352

--- Comment #17 from Richard PALO <richard at netbsd dot org> ---
Created attachment 33675
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33675&action=edit
c test program for snprintf

I tried the attached test program and post the following results from my system
demonstrating that the 'f' format does indeed seem erroneous, at least for the
particular case in hand involving '1/3':

$ /opt/local/gcc49/bin/gcc -std=c99 cflt.c
$ ./a.out
FLT_EVAL_METHOD = 2
(e) 1/3 => +3.33333333333333312e-01
(f) 1/3 => +0.33333333333333332
(e) 1/7 => +1.42857142857142848e-01
(f) 1/7 => +0.14285714285714284
(e) 1/9 => +1.11111111111111104e-01
(f) 1/9 => +0.11111111111111110



More information about the Gcc-bugs mailing list