From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Cc: "Hans-Peter Nilsson" <hp@bitrange.com>
Subject: Re: Finalizing fix committed for "[PATCH] sim: make sure to include strsignal prototype"
Date: Sun, 25 Mar 2012 07:40:00 -0000 [thread overview]
Message-ID: <201203250340.21803.vapier@gentoo.org> (raw)
In-Reply-To: <201203241424.16156.vapier@gentoo.org>
[-- Attachment #1: Type: Text/Plain, Size: 1635 bytes --]
On Saturday 24 March 2012 14:24:14 Mike Frysinger wrote:
> On Saturday 24 March 2012 06:55:28 Hans-Peter Nilsson wrote:
> > I built and and started testing for bfin-elf+unix but got a lot
> > of assembly errors for values out-of-range (HEAD binutils,
> > perhaps the assembler isn't tested on a 32-bit host?)
>
> should work, but i'll build it up to see
for most tests, it was just old code with too many leading digits (which
didn't matter as we only cared about the truncated value which got tested). i
manually tweaked the tests to use 32bit values only.
there is one test (fact.s) which is arguably not a bug in the test as the
source code specifies the real answer (which is larger than 32bits). as the
test runs and things start to overflow, this is fine as only the high bits get
truncated away. so we compare the truncated right answer to the truncated
computed answer and are good to go.
at any rate, seems to be a bug in common code that only shows up if you are on
a 32bit system and don't specify --enable-64-bit-bfd. simple test case which
hits the same problem regardless of target:
$ cat test.s
.if 6227020800 & ~0x7fff
.endif
$ ./as-new test.s
test.s: Assembler messages:
test.s:1: Warning: left operand is a bignum; integer 0 assumed
the BFD64 logic in gas' expr.c is fairly light. i'm not even sure it makes
sense to key off of BFD64 since this code doesn't use bfd for number
processing. it's just deciding whether to automatically upgrade bignum's into
int64's. i'll post a patch to just delete the BFD64 logic there and see what
people have to say.
-mike
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2012-03-25 7:40 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-23 4:23 [PATCH] sim: make sure to include strsignal prototype Mike Frysinger
2012-03-23 4:35 ` Mike Frysinger
2012-03-23 5:24 ` Hans-Peter Nilsson
2012-03-23 15:43 ` Mike Frysinger
2012-03-23 22:12 ` Hans-Peter Nilsson
2012-03-23 22:43 ` Mike Frysinger
2012-03-24 5:34 ` Mike Frysinger
2012-03-24 4:12 ` Mike Frysinger
2012-03-24 5:53 ` Hans-Peter Nilsson
2012-03-24 6:12 ` Mike Frysinger
2012-03-24 6:49 ` Hans-Peter Nilsson
2012-03-24 18:18 ` Mike Frysinger
2012-03-24 10:55 ` Finalizing fix committed for "[PATCH] sim: make sure to include strsignal prototype" Hans-Peter Nilsson
2012-03-24 18:24 ` Mike Frysinger
2012-03-24 20:55 ` Hans-Peter Nilsson
2012-03-25 8:14 ` Mike Frysinger
2012-03-25 14:03 ` Hans-Peter Nilsson
2012-03-25 7:40 ` Mike Frysinger [this message]
2012-03-25 7:54 ` Mike Frysinger
2012-03-25 14:26 ` Hans-Peter Nilsson
2012-03-24 5:39 ` [PATCH] sim: make sure to include strsignal prototype Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201203250340.21803.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
--cc=hp@bitrange.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox