gas: unhelpful sprint_value() behavior

H.J. Lu hjl.tools@gmail.com
Fri Apr 9 13:27:45 GMT 2021


On Fri, Apr 9, 2021 at 6:25 AM Jan Beulich via Binutils
<binutils@sourceware.org> wrote:
>
> Hello,
>
> I've just run into a testsuite failure (from an addition I have pending)
> resulting from sprint_value() printing a value in either hex or decimal
> depending on sizeof(long) vs sizeof(bfd_vma). Large values (particularly
> on, but not limited to, 64-bit architectures) are imo much harder to
> make sense of when presented in decimal.
>
> Since addressT, valueT, and bfd_vma are all the same (nowadays?) anyway
> and since there are pretty few uses of the function, would there be any
> objection to dropping it, making the callers use sprint_vma() instead?
>
> Thanks, Jan

I think it is a good idea.

-- 
H.J.


More information about the Binutils mailing list