From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9310 invoked by alias); 19 Jan 2011 22:54:05 -0000 Received: (qmail 9288 invoked by uid 22791); 19 Jan 2011 22:54:03 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iy0-f175.google.com (HELO mail-iy0-f175.google.com) (209.85.210.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Jan 2011 22:53:57 +0000 Received: by iyj18 with SMTP id 18so1407035iyj.20 for ; Wed, 19 Jan 2011 14:53:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.11.68 with SMTP id s4mr1641701ibs.14.1295477635166; Wed, 19 Jan 2011 14:53:55 -0800 (PST) Received: by 10.231.30.201 with HTTP; Wed, 19 Jan 2011 14:53:55 -0800 (PST) In-Reply-To: <61965.1876.3640-10981-136217698-1295476730@seznam.cz> References: <61965.1876.3640-10981-136217698-1295476730@seznam.cz> Date: Wed, 19 Jan 2011 22:54:00 -0000 Message-ID: Subject: Re: Re: Could someone tell me what is wrong here? From: Brian Budge To: =?ISO-8859-2?Q?Zden=ECk_Sojka?= Cc: Jonathan Wakely , =?ISO-8859-1?B?TeF06SBTb/Nz?= , gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00299.txt.bz2 2011/1/19 Zden=ECk Sojka : > >> ------------ P=F9vodn=ED zpr=E1va ------------ >> Od: Brian Budge >> P=F8edm=ECt: Re: Could someone tell me what is wrong here? >> Datum: 19.1.2011 23:02:57 >> ---------------------------------------- >> On Wed, Jan 19, 2011 at 1:54 PM, Jonathan Wakely = wrote: >> > On 19 January 2011 21:22, Brian Budge wrote: >> >> I haven't done an in-depth analysis of your code, but I noticed that >> >> in my own code, that casting a bool to an integer type did not always >> >> yield 0 or 1 (I believe this was new in 4.5x). =A0I ended up changing >> >> from >> >> =A0+=3D (uint32_t)mybool >> >> to >> >> =A0+=3D mybool ? 1 : 0 >> >> >> >> Does this help in your code? >> > >> > That would be a (fairly serious IMHO) bug, if you can reproduce it >> > please report it to bugzilla. >> > >> >> I'll see if I can work up a minimal repro. >> >> =A0 Brian >> >> > > Sorry, I didn't notice this issue is being discussed here as well. I have= already opened http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D47365 for tha= t. > > Zdenek > Is this the same issue? I don't see casting through a bool in your attached example. Brian