[PATCH] fix Dwarf2 build with certain gcc versions
Jan Beulich
jbeulich@suse.com
Mon Jun 7 06:31:22 GMT 2021
On 07.06.2021 08:25, Alan Modra wrote:
> 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.
4.3-ish (with a number of backports).
Jan
More information about the Binutils
mailing list