This is the mail archive of the binutils@sources.redhat.com 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: Fix compile time warnings in tc-mips.c


On Wed, 20 Apr 2005, Nick Clifton wrote:

>   The recent patch improve larger than 32-bit number handling in the
>   GAS MIPS port produced a few compile time warning messages:
> 
>     .../gas/config/tc-mips.c: In function `load_register':
>     .../gas/config/tc-mips.c:3559: warning: right shift count >= width of type
>     .../gas/config/tc-mips.c: In function `macro':
>     .../gas/config/tc-mips.c:5804: warning: right shift count >= width of type
>     .../gas/config/tc-mips.c:6395: warning: right shift count >= width of type

 Is there a way for the file to be built with offsetT being a 32-bit type?  
AFAIK all MIPS ports use BFD64.

>   I am applying the patch below to fix this problem, by switching over
>   to use the sprintf_vma macro to convert the values into readable
>   text.

 Anyway, thanks for the fix -- I must have not looked for a possible 
suitable function well enough when implementing these bits.  This should 
to 2.16 as well if the gate is still open.

  Maciej


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