From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8163 invoked by alias); 8 Aug 2002 10:16:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8147 invoked by uid 71); 8 Aug 2002 10:16:03 -0000 Date: Thu, 08 Aug 2002 03:16:00 -0000 Message-ID: <20020808101603.8146.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Stian Subject: Re: c/7527: gcc 2.95.3 and gcc 3.0.4 generate incorrect code Reply-To: Stian X-SW-Source: 2002-08/txt/msg00158.txt.bz2 List-Id: The following reply was made to PR c/7527; it has been noted by GNATS. From: Stian To: gcc-gnats@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, tomdean@asus.tddhome Subject: Re: c/7527: gcc 2.95.3 and gcc 3.0.4 generate incorrect code Date: 08 Aug 2002 12:08:55 +0200 The second conditional makes more sense if you use () at the right places if(!(_io_ports[0x39]&0x80)) If you don't add them, your statement is the same as if((!_io_ports[0x39])&0x80) That always come out false, then ! makes the result of the io-read either 0 or 1. Stian