From 2dc34a12e3edfc32133e6e000155ea7d66c9c706 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 23 Oct 2012 15:02:47 +0000 Subject: [PATCH] =?utf8?q?re=20PR=20target/54660=20(iq2000=5Ffunction=5Far?= =?utf8?q?g=5Fadvance:=20format=20=E2=80=98%p=20expects=20argument=20of=20?= =?utf8?q?type=20=E2=80=98void*=E2=80=99,=20but=20argument=203=20has=20typ?= =?utf8?q?e=20=E2=80=98const=5Ftree)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PR target/54660 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress compile time warning about pointer printing. From-SVN: r192717 --- gcc/ChangeLog | 6 ++++++ gcc/config/iq2000/iq2000.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3394051215b..bbe8f8417b7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-10-23 Nick Clifton + + PR target/54660 + * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress + compile time warning about pointer printing. + 2012-10-23 Joseph Myers * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | diff --git a/gcc/config/iq2000/iq2000.c b/gcc/config/iq2000/iq2000.c index da0b43da35b..6285edd31d3 100644 --- a/gcc/config/iq2000/iq2000.c +++ b/gcc/config/iq2000/iq2000.c @@ -1142,7 +1142,7 @@ iq2000_function_arg_advance (cumulative_args_t cum_v, enum machine_mode mode, "function_adv({gp reg found = %d, arg # = %2d, words = %2d}, %4s, ", cum->gp_reg_found, cum->arg_number, cum->arg_words, GET_MODE_NAME (mode)); - fprintf (stderr, "%p", type); + fprintf (stderr, "%p", (const void *) type); fprintf (stderr, ", %d )\n\n", named); } -- 2.30.2