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 c/14384] Invalid use of extra precision floating-point with -O0 optimization


------- Additional Comments From anz at obs-nice dot fr  2004-03-03 15:40 -------
Created an attachment (id=5853)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=5853&action=view)
Source code showing that float arithmetic is done in double

The result of this code shows that gcc does float arithmetic in double, which
it is not allowed to do when compiling with -O0 optimization.
Both SGI and DEC C compilers produce the correct result, i.e. that addition of
two floats and of two doubles should produce different results ... (whatever
the optimization levels for them, by the way)

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14384


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