* Re: sim
[not found] <D1AA69AC-E460-42A3-8E4F-EC1EF061717C@comcast.net>
@ 2016-02-11 3:17 ` Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2016-02-11 3:17 UTC (permalink / raw)
To: Mike Stump; +Cc: Binutils, gdb
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-11 3:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <D1AA69AC-E460-42A3-8E4F-EC1EF061717C@comcast.net>
2016-02-11 3:17 ` sim Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).