]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/ChangeLog
x86: re-order optimize_disp()
authorJan Beulich <jbeulich@suse.com>
Fri, 23 Apr 2021 07:16:57 +0000 (09:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Apr 2021 07:16:57 +0000 (09:16 +0200)
commit28a167a40651c4b50ef00c5fb92383b96390bfec
treeb72d2a62aa73449568a0179ab9f61f180ac865dd
parent7b025ee8c81312ea0c1a7fd44b7813f59df871ef
x86: re-order optimize_disp()

While I can't point out any specific case where things break, it looks
wrong to have the consumer of a flag before its producer. Set .disp32
first, then do the possible conversion to signed 32-bit, and finally
check whether the value fits in a signed long.
gas/ChangeLog
gas/config/tc-i386.c