diff options
author | James Greenhalgh <james.greenhalgh@arm.com> | 2013-04-25 09:14:27 +0000 |
---|---|---|
committer | James Greenhalgh <jgreenhalgh@gcc.gnu.org> | 2013-04-25 09:14:27 +0000 |
commit | 1ef395e461dd47b7d985c074a9f9ad6b399acc1d (patch) | |
tree | 35cec9077ad4f00fc362c219e86c19591117f851 | |
parent | 9f6aaa5cc7f2ae57aa27ea8ddc8b8a3b1d0e0a3c (diff) | |
download | gcc-1ef395e461dd47b7d985c074a9f9ad6b399acc1d.zip gcc-1ef395e461dd47b7d985c074a9f9ad6b399acc1d.tar.gz gcc-1ef395e461dd47b7d985c074a9f9ad6b399acc1d.tar.bz2 |
[AArch64] Fix printf format warning in aarch64_print_operand
gcc/
* config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
format specifier in 'X' case.
From-SVN: r198278
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/aarch64/aarch64.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05befdb..022036f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-04-25 James Greenhalgh <james.greenhalgh@arm.com> + + * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf + format specifier in 'X' case. + 2013-04-25 Alan Modra <amodra@gmail.com> PR target/57052 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index 68f847a..16034d2 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -3373,7 +3373,7 @@ aarch64_print_operand (FILE *f, rtx x, char code) output_operand_lossage ("invalid operand for '%%%c'", code); return; } - asm_fprintf (f, "0x%x", UINTVAL (x)); + asm_fprintf (f, "0x%wx", UINTVAL (x)); break; case 'w': |