[PATCH] fix Dwarf2 build with certain gcc versions

Alan Modra amodra@gmail.com
Mon Jun 7 06:25:30 GMT 2021


On Fri, Jun 04, 2021 at 09:52:39AM +0200, Jan Beulich via Binutils wrote:
> Older gcc reports:
> 
> .../bfd/dwarf2.c: In function ‘read_ranges’:
> .../bfd/dwarf2.c:3107: error: comparison between signed and unsigned
> .../bfd/dwarf2.c: In function ‘read_rnglists’:
> .../bfd/dwarf2.c:3189: error: comparison between signed and unsigned
> 
> Similarly for binutils/dwarf.c. Arrange for the left sides of the > to
> also be unsigned quantities.

Yeah, unsigned char promotes to int.  Thanks for fixing this.  How old
a version of gcc?  I didn't notice anything with gcc-4.9, which is the
oldest I regularly test.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list