aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pa/pa.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6528d42..903bd69 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2015-05-27 Nathan Sidwell <nathan@acm.org>
PR c++/66270
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index 090eeb4..5551654 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -5285,7 +5285,7 @@ pa_print_operand (FILE *file, rtx x, int code)
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);