From: Nick Clifton Date: Tue, 23 Oct 2012 15:02:47 +0000 (+0000) Subject: re PR target/54660 (iq2000_function_arg_advance: format ‘%p expects argument of type... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2dc34a12e3edfc32133e6e000155ea7d66c9c706;p=gcc.git re PR target/54660 (iq2000_function_arg_advance: format ‘%p expects argument of type ‘void*’, but argument 3 has type ‘const_tree) PR target/54660 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress compile time warning about pointer printing. From-SVN: r192717 --- 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); }