This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36578] cast to long double not taken into account when result stored to a double
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jun 2008 16:58:42 -0000
- Subject: [Bug middle-end/36578] cast to long double not taken into account when result stored to a double
- References: <bug-36578-6373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from joseph at codesourcery dot com 2008-06-21 16:58 -------
Subject: Re: cast to long double not taken into account
when result stored to a double
On Sat, 21 Jun 2008, rguenth at gcc dot gnu dot org wrote:
> It is convert_to_real doing this optimization.
convert_to_real is also responsible for the problematic conversions in
bug 35202. I didn't try to argue the double rounding issues for those
conversions, only the errno issue, since I don't have an example for the
double rounding affecting those function call conversions (and right now
implementations of many of the functions will not typically be correctly
rounding - but that could change if C1x follows the new IEEE 754
revision's recommendation of many more correctly rounded functions). But
it is potentially an issue for the conversions of function calls as well
as the plain arithmetic example of this bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36578