From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46260 invoked by alias); 11 Feb 2016 03:17:27 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 46015 invoked by uid 89); 11 Feb 2016 03:17:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:801, HContent-Transfer-Encoding:8bit X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 11 Feb 2016 03:17:18 +0000 Received: by mail-pa0-f52.google.com with SMTP id ho8so21921556pac.2; Wed, 10 Feb 2016 19:17:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=wd6EEgC1JZwfs4CMcyoNm1JkgH6lLnEHyaOWYHnRLqo=; b=f3B26rMFn3iVoTOdTByc1j3kNbCuEf9bGNZYJelI+hzgaqHIqsissAia4UJXmAkNm5 kbRyZ+1LeY3rSX332hOnR/KaB+AEQNL0EpV9vbbWDpNbcinoYRH9Dmx57RaTXIpPu3yx 9Xf08WCGLcqNhaXuxp6W67WvuwYyJk1+9gtIvc3O0OIpDkXAzshn1IQROlB/I5c1ym67 DbF8m5JkHe2r2P5Q1QRYgdv6Cpe+CFJ9hEOXmnrUjWmgjR/QsT+5oSgcK1vmpqybtilQ v8Fwt+OXus6j840u8n589NzX96VCy83AlyYHarSdh7yXfw9Gvs8HgToTyS5e40KRNM5x QaGQ== X-Gm-Message-State: AG10YOT0qkS9fm5oGuMsN6FoUjMvQjHCQ8qo2mPriuQn/7AiYdK6u8Ycnfylsl7D2LD8IQ== X-Received: by 10.66.148.35 with SMTP id tp3mr29348300pab.88.1455160636897; Wed, 10 Feb 2016 19:17:16 -0800 (PST) Received: from bubble.grove.modra.org (CPE-58-160-146-233.sa.bigpond.net.au. [58.160.146.233]) by smtp.gmail.com with ESMTPSA id i23sm8166296pfj.68.2016.02.10.19.17.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Feb 2016 19:17:15 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 5EA2DEA0157; Thu, 11 Feb 2016 13:47:11 +1030 (ACDT) Date: Thu, 11 Feb 2016 03:17:00 -0000 From: Alan Modra To: Mike Stump Cc: Binutils , gdb@sourceware.org Subject: Re: sim Message-ID: <20160211031711.GA10888@bubble.grove.modra.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2016-02/txt/msg00012.txt.bz2 On Wed, Feb 10, 2016 at 06:16:24PM -0800, Mike Stump wrote: > I imported master, and got a few warnings: > > ./../../binutils/sim/cyclops1/../common/sim-profile.c: In function ‘profile_pc_init’: > ../../../binutils/sim/cyclops1/../common/sim-profile.c:566:4: warning: left shift count >= width of type [enabled by default] > ((1 << sizeof (sim_cia) * (8 - 1)) > ^ Hmm, that looks like wrong parens too. The shift count is probably supposed to be (sizeof (sim_cia) * 8 - 1). > ../../../binutils/sim/cyclops1/../common/sim-profile.c:585:3: warning: left shift count >= width of type [enabled by default] > bucket_size = ((1 << ((sizeof (sim_cia) * 8) - 1)) > ^ > > Possibly 1L might work better. Yes, and possibly better reported to gdb. :) -- Alan Modra Australia Development Lab, IBM