Avoid another -Werror=dangling-pointer
authorAlan Modra <amodra@gmail.com>
Tue, 25 Apr 2023 03:56:12 +0000 (13:26 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Apr 2023 01:02:07 +0000 (10:32 +0930)
commit5b429b870767e2107bcc7d5d849e04d6901b5912
treeb10f21f3cd4d8b0d4694ca33fd94b2fa08d4ea8f
parent9d4f5cabe223b14d56ef6b7d7b5846e8949e3164
Avoid another -Werror=dangling-pointer

write.c:415:7: error: dangling pointer ‘prev_frag’ to ‘dummy’ may be used

* write.c (chain_frchains_together_1): Rewrite loop as a do
while to avoid false positive -Wdangling-pointer.
gas/write.c