summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/diagnostic.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c072e621a18..46d899f2cef 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
+
+ * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
+
2003-04-30 Andreas Schwab <schwab@suse.de>
* doc/extend.texi (Other Builtins): Enclose multiple word data
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index 901484a1243..e0e47e938bc 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -352,7 +352,7 @@ output_long_hexadecimal (output_buffer *buffer, long unsigned int i)
static inline void
output_pointer (output_buffer *buffer, void *p)
{
- output_formatted_scalar (buffer, "%p", p);
+ output_formatted_scalar (buffer, HOST_PTR_PRINTF, p);
}
/* Append to BUFFER a string specified by its STARTING character