Move fixup fx_bit_fixP and fx_im_disp fields to TC_FIX_TYPE
authorAlan Modra <amodra@gmail.com>
Tue, 16 Apr 2019 06:17:02 +0000 (15:47 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 16 Apr 2019 08:09:28 +0000 (17:39 +0930)
commit5bc113360ccc33797a3f882e02824a5c426da175
tree601325a80476ae04c4e93d1a61c3e3359694b9f8
parent90bd3c903fe76a8a3a5ced98c76e4366c5a0948f
Move fixup fx_bit_fixP and fx_im_disp fields to TC_FIX_TYPE

These are only used by dlx and ns32k.

* write.h: Don't include bit_fix.h.
(struct fix): Rearrange some fields.  Delete fx_im_disp and
fx_bit_fixP.  Use bitfields for fx_size and fx_pcrel_adjust.
* write.c (fix_new_internal): Don't init fx_im_disp and fx_bit_fixP.
(fixup_segment): Don't exclude overflow checks on fx_bit_fixP.
(print_fixup): Don't print im_disp.
* config/tc-cris.c (md_apply_fix): Remove tests of fx_bit_fixP
and fx_im_disp.
* config/tc-dlx.c (md_apply_fix): Remove wrong debug code.  Set
fx_no_overflow when fx_bit_fixP.
* config/tc-dlx.h: Include bit_fix.h.
(TC_FIX_TYPE, tc_fix_data, TC_INIT_FIX_DATA): Define.
* config/tc-ns32k.c (fix_new_ns32k, fix_new_ns32k_exp): Set
fx_no_overflow when bit_fixP.
* config/tc-ns32k.h (TC_FIX_TYPE): Add fx_bit_fixP and fx_im_disp.
(fix_im_disp, fix_bit_fixP): Adjust to suit.
(TC_INIT_FIX_DATA, TC_FIX_DATA_PRINT): Likewise.
gas/ChangeLog
gas/config/tc-cris.c
gas/config/tc-dlx.c
gas/config/tc-dlx.h
gas/config/tc-ns32k.c
gas/config/tc-ns32k.h
gas/write.c
gas/write.h