From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28209 invoked by alias); 19 Jan 2011 22:02:52 -0000 Received: (qmail 28201 invoked by uid 22791); 19 Jan 2011 22:02:52 -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-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Jan 2011 22:02:47 +0000 Received: by iwn8 with SMTP id 8so1302868iwn.20 for ; Wed, 19 Jan 2011 14:02:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.14.136 with SMTP id g8mr1546841iba.114.1295474565516; Wed, 19 Jan 2011 14:02:45 -0800 (PST) Received: by 10.231.30.201 with HTTP; Wed, 19 Jan 2011 14:02:45 -0800 (PST) In-Reply-To: References: Date: Wed, 19 Jan 2011 22:02:00 -0000 Message-ID: Subject: Re: Could someone tell me what is wrong here? From: Brian Budge To: Jonathan Wakely Cc: =?ISO-8859-1?B?TeF06SBTb/Nz?= , gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00297.txt.bz2 On Wed, Jan 19, 2011 at 1:54 PM, Jonathan Wakely wr= ote: > 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. Brian