This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c/35456] Different results for inlined vs. non-inlined function
- From: Andrew Pinski <pinskia at gmail dot com>
- To: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- Cc: "gcc-bugs at gcc dot gnu dot org" <gcc-bugs at gcc dot gnu dot org>
- Date: Tue, 4 Mar 2008 00:48:15 -0800
- Subject: Re: [Bug c/35456] Different results for inlined vs. non-inlined function
- References: <bug-35456-1649@http.gcc.gnu.org/bugzilla/> <20080304084033.7583.qmail@sourceware.org>
Sent from my iPhone
On Mar 4, 2008, at 0:40, "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org
> wrote:
------- Comment #1 from ubizjak at gmail dot com 2008-03-04 08:40
-------
Hm, -0.0 >= 0.0 is folded to TRUE, as confirmed by:
printf ("%i\n", -0.0 >= 0.0);
This produces 1.
That is correct. The noinline case is wrong. It should not be
converted to be abs.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35456