diff options
Diffstat (limited to 'gcc/machmode.h')
-rw-r--r-- | gcc/machmode.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/machmode.h b/gcc/machmode.h index 451f4d1..5f8459d 100644 --- a/gcc/machmode.h +++ b/gcc/machmode.h @@ -53,10 +53,14 @@ Boston, MA 02111-1307, USA. */ /* Provide a default way to print an address in hex via printf. */ #ifndef HOST_PTR_PRINTF -#define HOST_PTR_PRINTF \ - (sizeof (int) == sizeof (char *) ? "%x" \ - : sizeof (long) == sizeof (char *) ? "%lx" : "%llx") -#endif +# ifdef HAVE_PRINTF_PTR +# define HOST_PTR_PRINTF "%p" +# else +# define HOST_PTR_PRINTF \ + (sizeof (int) == sizeof (char *) ? "%x" \ + : sizeof (long) == sizeof (char *) ? "%lx" : "%llx") +# endif +#endif /* ! HOST_PTR_PRINTF */ /* Provide defaults for the way to print a HOST_WIDE_INT in various manners. */ |