This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/14384] Invalid use of extra precision floating-point with -O0 optimization
- From: "anz at obs-nice dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2004 15:40:25 -0000
- Subject: [Bug c/14384] Invalid use of extra precision floating-point with -O0 optimization
- References: <20040302150001.14384.anz@obs-nice.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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