arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
authorJoern Rennecke <joern.rennecke@embecosm.com>
Sat, 6 Sep 2014 16:04:40 +0000 (16:04 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Sat, 6 Sep 2014 16:04:40 +0000 (17:04 +0100)
        * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
        * arc_output_mi_thunk: Likewise.

From-SVN: r214992

gcc/ChangeLog
gcc/config/arc/arc.c

index dcf4e2a95654c37b34e1b947c7b7448a2e204b30..bd824e7bce68b8ad8267b669818f75903f412544 100644 (file)
@@ -1,3 +1,8 @@
+2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
+
+       * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
+       * arc_output_mi_thunk: Likewise.
+
 2014-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
 
        PR middle-end/63171
index 5ee31a61f3cc0199534ee29c0c117f14581c0245..0b6fcb1a911fba95e39f368472eb7729a64886dd 100644 (file)
@@ -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);