aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ns32k.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-03-30 00:06:10 +0000
committerAlan Modra <amodra@gmail.com>2001-03-30 00:06:10 +0000
commit93c2a809afebb143e36fc1e666c5de746e76d741 (patch)
treebcf004bb8591de6c9677974ce8a0a57cd283fd65 /gas/config/tc-ns32k.c
parent23ec5d03124e6105a19f9d6d7d1410f0de589f50 (diff)
downloadgdb-93c2a809afebb143e36fc1e666c5de746e76d741.zip
gdb-93c2a809afebb143e36fc1e666c5de746e76d741.tar.gz
gdb-93c2a809afebb143e36fc1e666c5de746e76d741.tar.bz2
Prepare for multi-pass relaxation.
Diffstat (limited to 'gas/config/tc-ns32k.c')
-rw-r--r--gas/config/tc-ns32k.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gas/config/tc-ns32k.c b/gas/config/tc-ns32k.c
index f538129..f66795c 100644
--- a/gas/config/tc-ns32k.c
+++ b/gas/config/tc-ns32k.c
@@ -1,5 +1,6 @@
/* ns32k.c -- Assemble on the National Semiconductor 32k series
- Copyright 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000
+ Copyright 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+ 2001
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -2102,9 +2103,14 @@ md_estimate_size_before_relax (fragP, segment)
frag_wane (fragP);
break;
}
+ /* Fall thru */
+
case IND (BRANCH, BYTE):
- fragP->fr_var += 1;
+ case IND (BRANCH, WORD):
+ case IND (BRANCH, DOUBLE):
+ fragP->fr_var = md_relax_table[fragP->fr_subtype].rlx_length;
break;
+
default:
break;
}