diff options
author | David Taylor <taylor@redhat.com> | 2001-02-06 18:07:48 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 2001-02-06 18:07:48 +0000 |
commit | 4603e466c25f063a9d4a821966f7368fefd4524f (patch) | |
tree | 3958905ec0f48325639cd6a21e3540b6f889e48c /bfd | |
parent | 0e2534bd0420626b6bb4949938551c0cc02d3aa8 (diff) | |
download | ppe42-binutils-4603e466c25f063a9d4a821966f7368fefd4524f.tar.gz ppe42-binutils-4603e466c25f063a9d4a821966f7368fefd4524f.zip |
* valops.c (value_cast): If casting a scalar to a pointer, do not
issue a message about truncation unless it exceeds the length of
an address, not the length of a pointer. This is because what the
user gives us is an address, not a pointer, and we will ultimately
convert it (via ADDRESS_TO_POINTER) to a pointer, not truncate it
to a pointer. This allows things like "print *(int *)0x01000234"
to work without generating a misleading message on a target having
two byte pointers and four byte addresses.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions