This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Commit: Fix unsigned vs signed comparisons in SH code


Hi Guys,

>> Why is that a unsigned vs signed comparison?  Both operands are of type
>> bfd_vma.
> 
> You are right, it isn't.
> 
> It is clang-10 (possibly clang-9, but not installed here):
> 
> warning: overlapping comparisons always evaluate to true
> [-Wtautological-overlap-compare]
> 
> So the comparison works likely not as intended.

Right, sorry - I had the wrong description of the warning in my subject line.

Cheers
  Nick



Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]