OSDN Git Service

Fix problem where -relax could reorder multiple consecutive sets of the
authoramylaar <amylaar>
Thu, 10 Feb 2000 20:17:33 +0000 (20:17 +0000)
committeramylaar <amylaar>
Thu, 10 Feb 2000 20:17:33 +0000 (20:17 +0000)
commit2661260e52186578289ffd55a0fee735949ceb6f
treed3cdcd8ecab80ed71376e00c63d09c976fef1f21
parentd94b23c8f52784feeb65c6e154ec0e3fadcd413e
Fix problem where -relax could reorder multiple consecutive sets of the
same register:
* coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
* (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
* (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
sh_insns_uses_or_sets_freg): New functions.
* (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
* (sh_insns_conflict): Use new functions and new macros to
detect conflicts when two instructions both set same integer registers,
both set same fp register, and both set special register.
bfd/ChangeLog
bfd/coff-sh.c