diff options
author | Alan Modra <amodra@gmail.com> | 2001-03-30 00:06:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2001-03-30 00:06:10 +0000 |
commit | 93c2a809afebb143e36fc1e666c5de746e76d741 (patch) | |
tree | bcf004bb8591de6c9677974ce8a0a57cd283fd65 /gas/config/tc-h8500.c | |
parent | 23ec5d03124e6105a19f9d6d7d1410f0de589f50 (diff) | |
download | gdb-93c2a809afebb143e36fc1e666c5de746e76d741.zip gdb-93c2a809afebb143e36fc1e666c5de746e76d741.tar.gz gdb-93c2a809afebb143e36fc1e666c5de746e76d741.tar.bz2 |
Prepare for multi-pass relaxation.
Diffstat (limited to 'gas/config/tc-h8500.c')
-rw-r--r-- | gas/config/tc-h8500.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gas/config/tc-h8500.c b/gas/config/tc-h8500.c index 88ec026..7fe556e 100644 --- a/gas/config/tc-h8500.c +++ b/gas/config/tc-h8500.c @@ -1,5 +1,6 @@ /* tc-h8500.c -- Assemble code for the Hitachi H8/500 - Copyright 1993, 1994, 1995, 1998, 2000 Free Software Foundation, Inc. + Copyright 1993, 1994, 1995, 1998, 2000, 2001 + Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1447,6 +1448,7 @@ md_estimate_size_before_relax (fragP, segment_type) { default: abort (); + case C (BRANCH, UNDEF_BYTE_DISP): case C (SCB_F, UNDEF_BYTE_DISP): case C (SCB_TST, UNDEF_BYTE_DISP): @@ -1464,8 +1466,18 @@ md_estimate_size_before_relax (fragP, segment_type) long. */ fragP->fr_subtype = C (what, UNDEF_WORD_DISP); fragP->fr_var = md_relax_table[C (what, WORD_DISP)].rlx_length; - return md_relax_table[C (what, WORD_DISP)].rlx_length; } + break; + + case C (BRANCH, BYTE_DISP): + case C (BRANCH, UNDEF_WORD_DISP): + case C (SCB_F, BYTE_DISP): + case C (SCB_F, UNDEF_WORD_DISP): + case C (SCB_TST, BYTE_DISP): + case C (SCB_TST, UNDEF_WORD_DISP): + /* When relaxing a section for the second time, we don't need to + do anything. */ + break; } return fragP->fr_var; } |