This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38405] [4.4 Regression] (silent failure) handling bitfield in ternary
- From: "bonzini at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Dec 2008 15:42:43 -0000
- Subject: [Bug tree-optimization/38405] [4.4 Regression] (silent failure) handling bitfield in ternary
- References: <bug-38405-17043@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from bonzini at gnu dot org 2008-12-05 15:42 -------
Subject: Re: [4.4 Regression] (silent failure)
handling bitfield in ternary
> Folding statement: D.1241_5 = D.1242_4 != 0;
> Folded into: D.1241_5 = (int) D.1242_4;
>
> which is wrong for
>
> <unnamed-signed:1> D.1242;
>
> because it sign-extends.
So it's probably in fold-const.c and latent in 4.3 too...
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38405