This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35456] Different results for inlined vs. non-inlined function
- From: "pinskia at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2008 08:49:03 -0000
- Subject: [Bug c/35456] Different results for inlined vs. non-inlined function
- References: <bug-35456-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gmail dot com 2008-03-04 08:49 -------
Subject: Re: Different results for inlined vs. non-inlined function
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
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35456