diff mbox

[committed] Fix print format used for 'o' operand in pa_print_operand

Message ID BLU436-SMTP69CBC155A6D195C48EB29397CA0@phx.gbl
State New
Headers show

Commit Message

John David Anglin May 28, 2015, 12:48 a.m. UTC
The attached change fixes a build error in stage2 on hppa.

Tested on hppa64-hp-hpux11.11 with no regressions.  Committed to trunk.

Dave
--
John David Anglin	dave.anglin@bell.net
2015-05-27  John David Anglin  <danglin@gcc.gnu.org>

	* config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
	instead of "%d" for 'o' operand.
diff mbox

Patch

Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c	(revision 223644)
+++ config/pa/pa.c	(working copy)
@@ -5285,7 +5289,7 @@ 
     case 'o':
       gcc_assert (GET_CODE (x) == CONST_INT
 		  && (INTVAL (x) == 1 || INTVAL (x) == 2 || INTVAL (x) == 3));
-      fprintf (file, "%d", INTVAL (x));
+      fprintf (file, HOST_WIDE_INT_PRINT_DEC, INTVAL (x));
       return;
     case 'O':
       gcc_assert (GET_CODE (x) == CONST_INT && exact_log2 (INTVAL (x)) >= 0);