This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Fix compile time warnings in tc-mips.c
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 20 Apr 2005 17:26:36 +0100 (BST)
- Subject: Re: Fix compile time warnings in tc-mips.c
- References: <m3pswptt4a.fsf@redhat.com>
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