]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: make deferred expression evaluation generally latch dot
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Jan 2025 07:42:00 +0000 (08:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Jan 2025 07:42:00 +0000 (08:42 +0100)
commit044dd6345f7b275db1ed3b2b9bea7a3e46b1ea09
treeab37d865cf05ccf47e3c65708222f3fdd44438f3
parent6f04937e1d7db190ca96ec08d8aeb25f0ec6e994
gas: make deferred expression evaluation generally latch dot

Deferring expression evaluation is often necessary. However, the value
current_location() records typically is intended to represent the
location at the point of use of the expression, with the exception being
.eqv (or its == equivalent). Change how expr_defer behaves in this
regard, and introduce a special mode just for pseudo_set() to use.

Introduce a predicate to cover both "deferred" modes, and use it
everywhere except in current_location(), where only the new mode wants
checking for.
gas/config/tc-m32r.c
gas/config/tc-metag.c
gas/config/tc-mn10300.c
gas/config/tc-ppc.c
gas/config/tc-sh.c
gas/expr.c
gas/expr.h
gas/read.c