aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-09-14 03:34:44 +0000
committerIan Lance Taylor <ian@airs.com>1992-09-14 03:34:44 +0000
commit76bf2d5d613356d30a4b9715a4f34da56368a3fe (patch)
treeefbdf30f38055792caaa80c7d04de45e0fe8703f
parent987b14913a6cc0c405e8d847fc9f8e6234b8f13f (diff)
downloadgdb-76bf2d5d613356d30a4b9715a4f34da56368a3fe.zip
gdb-76bf2d5d613356d30a4b9715a4f34da56368a3fe.tar.gz
gdb-76bf2d5d613356d30a4b9715a4f34da56368a3fe.tar.bz2
Sun Sep 13 20:29:39 1992 Ian Lance Taylor (ian@cygnus.com)
* obj-coffbfd.c (fixup_segment): fixed missing parens in expression checking for byte or word overflow.
-rw-r--r--gas/config/ChangeLog5
-rw-r--r--gas/config/obj-coffbfd.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/config/ChangeLog b/gas/config/ChangeLog
index 9cb2c52..f8adc0f 100644
--- a/gas/config/ChangeLog
+++ b/gas/config/ChangeLog
@@ -1,3 +1,8 @@
+Sun Sep 13 20:29:39 1992 Ian Lance Taylor (ian@cygnus.com)
+
+ * obj-coffbfd.c (fixup_segment): fixed missing parens in
+ expression checking for byte or word overflow.
+
Fri Sep 11 10:21:04 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Support for i386 coff
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index dd194bb..1f59b55 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -2256,9 +2256,9 @@ segT this_segment_type)
if (!fixP->fx_bit_fixP) {
if ((size==1 &&
- (add_number& ~0xFF) && (add_number&~0xFF!=(-1&~0xFF))) ||
+ (add_number& ~0xFF) && ((add_number&~0xFF)!=(-1&~0xFF))) ||
(size==2 &&
- (add_number& ~0xFFFF) && (add_number&~0xFFFF!=(-1&~0xFFFF)))) {
+ (add_number& ~0xFFFF) && ((add_number&~0xFFFF)!=(-1&~0xFFFF)))) {
as_bad("Value of %d too large for field of %d bytes at 0x%x",
add_number, size, fragP->fr_address + where);
} /* generic error checking */