]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
microblaze: fix PR65649
authorNick Clifton <nickc@redhat.com>
Fri, 15 Nov 2019 17:39:14 +0000 (17:39 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Fri, 15 Nov 2019 17:39:14 +0000 (17:39 +0000)
microblaze-linux-musl build fails without this.

(This is a rebase of an earlier patch posted on bugzilla.)

gcc/ChangeLog:

2019-11-15  Nick Clifton  <nickc@redhat.com>
    Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR target/65649
* config/microblaze/microblaze.c (print_operand): Print value as long.

Co-Authored-By: Szabolcs Nagy <szabolcs.nagy@arm.com>
From-SVN: r278308

gcc/ChangeLog
gcc/config/microblaze/microblaze.c

index 3eb468cbd353bcbeb819bb2e45a5e7a32b08b368..e5b735ef50a0b71ea162a5bce90e946a8a9390f5 100644 (file)
@@ -1,3 +1,9 @@
+2019-11-15  Nick Clifton  <nickc@redhat.com>
+           Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       PR target/65649
+       * config/microblaze/microblaze.c (print_operand): Print value as long.
+
 2019-11-15  Jan Hubicka  <hubicka@ucw.cz>
 
        * ipa-inline.c (edge_badness, inline_small_functions): Revert
index 6705168c99376e52f7a8da2059041d58895fb3aa..45ab565291028f394dba2f97a51c6320ff213d04 100644 (file)
@@ -2468,7 +2468,7 @@ print_operand (FILE * file, rtx op, int letter)
          unsigned long value_long;
          REAL_VALUE_TO_TARGET_SINGLE (*CONST_DOUBLE_REAL_VALUE (op),
                                       value_long);
-         fprintf (file, HOST_WIDE_INT_PRINT_HEX, value_long);
+         fprintf (file, "0x%lx", value_long);
        }
       else
        {
@@ -2527,7 +2527,7 @@ print_operand (FILE * file, rtx op, int letter)
       print_operand_address (file, XEXP (op, 0));
     }
   else if (letter == 'm')
-    fprintf (file, HOST_WIDE_INT_PRINT_DEC, (1L << INTVAL (op)));
+    fprintf (file, "%ld", (1L << INTVAL (op)));
   else
     output_addr_const (file, op);
 }