OSDN Git Service

Fix problem where -relax could reorder multiple consecutive sets of the
authorJoern Rennecke <joern.rennecke@arc.com>
Thu, 10 Feb 2000 20:17:33 +0000 (20:17 +0000)
committerJoern Rennecke <joern.rennecke@arc.com>
Thu, 10 Feb 2000 20:17:33 +0000 (20:17 +0000)
commit20a999119ea2f58dd2da4c285b8e119f202aaa0a
tree4e05b8210d07204a36c6ae4d607fcf9955439fa0
parent67a641fa353ae13f6d4e9c4f2d37c12e16dadbc6
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