aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-a29k.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-04-13 01:08:05 +0000
committerAlan Modra <amodra@gmail.com>2000-04-13 01:08:05 +0000
commitfc633e5b9780011f74f2c23837968e43e262a239 (patch)
tree5ccc69c4b1e69941727cee9ebe0a9a7fcd31de32 /bfd/coff-a29k.c
parent3db10f32e0e0cbf960edcdf6ed42ccb3bc7c4952 (diff)
downloadgdb-fc633e5b9780011f74f2c23837968e43e262a239.zip
gdb-fc633e5b9780011f74f2c23837968e43e262a239.tar.gz
gdb-fc633e5b9780011f74f2c23837968e43e262a239.tar.bz2
Remove U suffix from constants for K&R compilers.
Fix a couple of 64 bit nits.
Diffstat (limited to 'bfd/coff-a29k.c')
-rw-r--r--bfd/coff-a29k.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c
index 0374b20..26d3c64 100644
--- a/bfd/coff-a29k.c
+++ b/bfd/coff-a29k.c
@@ -1,5 +1,5 @@
/* BFD back-end for AMD 29000 COFF binaries.
- Copyright 1990, 91, 92, 93, 94, 95, 97, 98, 1999
+ Copyright 1990, 91, 92, 93, 94, 95, 97, 98, 99, 2000
Free Software Foundation, Inc.
Contributed by David Wood at New York University 7/8/91.
@@ -43,9 +43,9 @@ static boolean coff_a29k_adjust_symndx
#define INSERT_HWORD(WORD,HWORD) \
(((WORD) & 0xff00ff00) | (((HWORD) & 0xff00) << 8) | ((HWORD)& 0xff))
#define EXTRACT_HWORD(WORD) \
- ((((WORD) & 0x00ff0000) >> 8) | ((WORD)& 0xff))
+ ((((WORD) & 0x00ff0000) >> 8) | ((WORD) & 0xff))
#define SIGN_EXTEND_HWORD(HWORD) \
- ((HWORD) & 0x8000 ? (HWORD)|(~0xffffL) : (HWORD))
+ (((HWORD) ^ 0x8000) - 0x8000)
/* Provided the symbol, returns the value reffed */
static long