From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17402 invoked by alias); 27 Jun 2002 22:56:02 -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 17377 invoked by uid 71); 27 Jun 2002 22:56:01 -0000 Date: Thu, 27 Jun 2002 15:56:00 -0000 Message-ID: <20020627225601.17376.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Mark Mitchell Subject: Re: c/7139: Shifting 1 through a 64bit int fails at 32bit line Reply-To: Mark Mitchell X-SW-Source: 2002-06/txt/msg00674.txt.bz2 List-Id: The following reply was made to PR c/7139; it has been noted by GNATS. From: Mark Mitchell To: Simon Shapiro , "mmitchel@gcc.gnu.org" , "gcc-bugs@gcc.gnu.org" , "gcc-prs@gcc.gnu.org" , "nobody@gcc.gnu.org" , "shimon@simon-shapiro.com" , "gcc-gnats@gcc.gnu.org" Cc: Subject: Re: c/7139: Shifting 1 through a 64bit int fails at 32bit line Date: Thu, 27 Jun 2002 15:46:41 -0700 --On Thursday, June 27, 2002 06:26:25 PM +0100 Simon Shapiro wrote: > Thax for looking into this problem. > > However, I would like to suggest that you may have dismissed the > problem a bit too quickly. No, I understood it. You need to take a look at the C standard. If ints have 32 bits, (1 << 32) has undefined behavior. -- Mark Mitchell mark@codesourcery.com CodeSourcery, LLC http://www.codesourcery.com