aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJoern Rennecke <joern.rennecke@embecosm.com>2014-09-06 16:04:40 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2014-09-06 17:04:40 +0100
commitdfca07ead8fc52ad6ffd15b4da8a7accf6684c2b (patch)
treedf6542ead6fb0bb5fc9f45e9f4319b92ad81a670 /gcc/config
parentebd3cb1284eef8df20f45a233c299cc5ce658eb7 (diff)
downloadgcc-dfca07ead8fc52ad6ffd15b4da8a7accf6684c2b.zip
gcc-dfca07ead8fc52ad6ffd15b4da8a7accf6684c2b.tar.gz
gcc-dfca07ead8fc52ad6ffd15b4da8a7accf6684c2b.tar.bz2
arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
* config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT. * arc_output_mi_thunk: Likewise. From-SVN: r214992
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arc/arc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 5ee31a6..0b6fcb1 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -2976,10 +2976,10 @@ arc_print_operand (FILE *file, rtx x, int code)
split_double (x, &first, &second);
if((WORDS_BIG_ENDIAN) == 0)
- fprintf (file, "0x%08lx",
+ fprintf (file, "0x%08" PRIx64,
code == 'L' ? INTVAL (first) : INTVAL (second));
else
- fprintf (file, "0x%08lx",
+ fprintf (file, "0x%08" PRIx64,
code == 'L' ? INTVAL (second) : INTVAL (first));
@@ -5520,7 +5520,7 @@ arc_output_mi_thunk (FILE *file, tree thunk ATTRIBUTE_UNUSED,
add this,this,r12 --> this+ = *(*this + vcall_offset) */
asm_fprintf (file, "\tld\t%s, [%s]\n",
ARC_TEMP_SCRATCH_REG, reg_names[this_regno]);
- asm_fprintf (file, "\tadd\t%s, %s, %ld\n",
+ asm_fprintf (file, "\tadd\t%s, %s, " HOST_WIDE_INT_PRINT_DEC "\n",
ARC_TEMP_SCRATCH_REG, ARC_TEMP_SCRATCH_REG, vcall_offset);
asm_fprintf (file, "\tld\t%s, [%s]\n",
ARC_TEMP_SCRATCH_REG, ARC_TEMP_SCRATCH_REG);