[PATCH] gas: make as_tsktsk() output more as_warn()-like
Richard Earnshaw (lists)
Richard.Earnshaw@arm.com
Mon Sep 1 15:28:26 GMT 2025
On 08/08/2025 14:35, Jan Beulich wrote:
> While doing the Arm adjustments I came to wonder: Why does struct
> deprecated_coproc_regs_s have an obs_msg field, which isn't used
> anywhere?
It was originally added as part of https://sourceware.org/pipermail/binutils/2012-August/078044.html and was passed as an argument to check_obsolete in do_co_reg. I imagine the intent was that at some point the deprecation would become obsoletion and that the
message would change from deprecated to obsolete.
But that caused PR gas/15273, which Nick fixed by removing the only use. I need to check if that was really the correct fix though. It looks to me as though the intended logic was originally to suppress the deprecated warning if the obsoleted error was emitted, but that somehow it was doing the wrong thing and then generating bogus errors with no message.
R.
More information about the Binutils
mailing list