Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/toolchain/gas/config rework an expression to avoid ...
details: https://anonhg.NetBSD.org/src/rev/c7a09e0ee239
branches: trunk
changeset: 550002:c7a09e0ee239
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jul 27 15:16:54 2003 +0000
description:
rework an expression to avoid 32 bit overflow
diffstat:
gnu/dist/toolchain/gas/config/tc-mips.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8f37507ce9da -r c7a09e0ee239 gnu/dist/toolchain/gas/config/tc-mips.c
--- a/gnu/dist/toolchain/gas/config/tc-mips.c Sun Jul 27 15:13:39 2003 +0000
+++ b/gnu/dist/toolchain/gas/config/tc-mips.c Sun Jul 27 15:16:54 2003 +0000
@@ -1860,7 +1860,7 @@
break;
case BFD_RELOC_MIPS_HIGHEST:
- tmp = (address_expr->X_add_number + 0x800080008000) >> 16;
+ tmp = ((address_expr->X_add_number + 0x8000) >> 16) + 0x80008000;
tmp >>= 16;
ip->insn_opcode |= (tmp >> 16) & 0xffff;
break;
Home |
Main Index |
Thread Index |
Old Index