]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: move had_errors() invocation in finishing of subsegs
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2024 10:37:31 +0000 (11:37 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2024 10:37:31 +0000 (11:37 +0100)
commit20d9fb448c375d5f521eaed8cfc0c49a44803bd1
tree4055cc9d591d472630db57d1d51f80f4139b7146
parentaf3394d97a8c5187085c0eec5fb03e8da88db5fb
gas: move had_errors() invocation in finishing of subsegs

Invoking this repeatedly in an inner loop is not only inefficient, but
may lead to inconsistencies in e.g. the listings that the original
comment author cared about. (Accept potential inconsistencies across
distinct sections though, to cover all invocations of the function.)
gas/write.c