[AArch64] Fix printf format warning in aarch64_print_operand
Richard Earnshaw
rearnsha@arm.com
Thu Apr 25 10:24:00 GMT 2013
On 22/04/13 11:56, James Greenhalgh wrote:
>
> Hello,
>
> This patch fixes the following warning in config/aarch64/aarch64.c:
>
> .../gcc/config/aarch64/aarch64.c: In function ‘void aarch64_print_operand(FILE*, rtx, char)’:
> .../gcc/config/aarch64/aarch64.c:3376:42: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat]
>
> By adding the missing w to %wx.
>
> Regression tested on aarch64-none-elf:aarch64.exp with no issues and
> checked to ensure the warning clears.
>
> Thanks,
> James Greenhalgh
>
> ---
> gcc/
>
> 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
>
> * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
> format specifier in 'X' case.
>
OK.
R.
More information about the Gcc-patches
mailing list