* [PATCH, committed] Fix print format used for 'o' operand in pa_print_operand
@ 2015-05-28 5:11 John David Anglin
0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2015-05-28 5:11 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 182 bytes --]
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
[-- Attachment #2: print_op.d.txt --]
[-- Type: text/plain, Size: 692 bytes --]
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.
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-28 0:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-28 5:11 [PATCH, committed] Fix print format used for 'o' operand in pa_print_operand John David Anglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).