x86: tighten extend-to-32bit-address conditions
authorJan Beulich <jbeulich@suse.com>
Fri, 19 May 2023 07:14:40 +0000 (09:14 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 19 May 2023 07:14:40 +0000 (09:14 +0200)
commitdf81d460b2d9ec7327a0c1ab2344d7ec62874ce0
treec592a69a5ea76f735ee52f23b27f8e6e002c8b98
parentd89d987bd2fabbc2ee44b28ac2b01f4b301c770c
x86: tighten extend-to-32bit-address conditions

In a442cac5084e ("ix86: wrap constants") I made the truncation condition
too relaxed: Any indication of a mode that's possible with BFD64 only
should avoid the truncation. Therefore, like in the other two cases of
calls to extend_to_32bit_address(), also check whether we're generating
a 64-bit object.
gas/config/tc-i386.c