re PR target/54660 (iq2000_function_arg_advance: format ‘%p expects argument of type...
authorNick Clifton <nickc@redhat.com>
Tue, 23 Oct 2012 15:02:47 +0000 (15:02 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 23 Oct 2012 15:02:47 +0000 (15:02 +0000)
PR target/54660
* config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
compile time warning about pointer printing.

From-SVN: r192717

gcc/ChangeLog
gcc/config/iq2000/iq2000.c

index 3394051215b3b2783c157741a3f759f257000f1d..bbe8f8417b752d801c4252d2b3524400f023461c 100644 (file)
@@ -1,3 +1,9 @@
+2012-10-23  Nick Clifton  <nickc@redhat.com>
+
+       PR target/54660
+       * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
+       compile time warning about pointer printing.
+
 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
 
        * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
index da0b43da35b399b90de096941761c9ad478209fd..6285edd31d3eb1a370d9a2f33a345b74a34b1d47 100644 (file)
@@ -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);
     }