x86: improve resolution of register equates
authorJan Beulich <jbeulich@suse.com>
Wed, 23 Mar 2022 11:31:04 +0000 (12:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Mar 2022 11:31:04 +0000 (12:31 +0100)
commit64d23078e30e54e1bb095962540e4c6138edaf5a
treea36e9f7c6c89c5fd750401bea90e6c20fb32f76e
parent3b55a1d00ad3cf9fe3db7e9347e6f3bbe4d04b9b
x86: improve resolution of register equates

Allow transitive (or recursive) equates to work in addition to direct
ones. The only requirements are that
- the equate being straight of a register, i.e. no expressions involved
  (albeit I'm afraid something like "%eax + 0" will be viewed as %eax),
- at the point of use there's no forward ref left which cannot be
  resolved, yet.
gas/config/tc-i386-intel.c
gas/config/tc-i386.c
gas/testsuite/gas/i386/equ.d
gas/testsuite/gas/i386/equ.s