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


On Nov 26 2019, Nick Clifton wrote:

>  It seems that recent versions of clang have a new warning that catches
>  code like this:
>
>     if (sym_value < (bfd_vma) -0x1000 || sym_value >= 0x1000)

Why is that a unsigned vs signed comparison?  Both operands are of type
bfd_vma.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


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