aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-07-08 00:35:52 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-07-08 00:35:52 +0000
commit75b6f3fd3a00de216b2a38fb3ad2da80e08979f1 (patch)
treeff36bca69b7fbedb7d6cc5611fbd918944314e77 /gcc/system.h
parentafeeac3f8845c16d6165f59b1823f89dbca569bb (diff)
downloadgcc-75b6f3fd3a00de216b2a38fb3ad2da80e08979f1.zip
gcc-75b6f3fd3a00de216b2a38fb3ad2da80e08979f1.tar.gz
gcc-75b6f3fd3a00de216b2a38fb3ad2da80e08979f1.tar.bz2
bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls.
gcc: * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls. * c-decl.c (c_print_identifier): Likewise. * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise. * print-rtl.c (print_rtx): Likewise. * print-tree.c (print_node_brief, print_node): Likewise. * system.h (HOST_PTR_PRINTF): Ensure we have a literal string. * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'. * config.in, configure: Regenerated. cp: * decl.c (print_binding_level, print_other_binding_stack, print_binding_stack): Merge uses of HOST_PTR_PRINTF with adjacent stdio calls. * ptree.c (cxx_print_decl, cxx_print_binding): Likewise. From-SVN: r69061
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/system.h b/gcc/system.h
index 37d68f5..adfb90e 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -446,10 +446,12 @@ extern void abort (void);
#ifndef HOST_PTR_PRINTF
# ifdef HAVE_PRINTF_PTR
# define HOST_PTR_PRINTF "%p"
+# elif SIZEOF_INT == SIZEOF_VOID_P
+# define HOST_PTR_PRINTF "%x"
+# elif SIZEOF_LONG == SIZEOF_VOID_P
+# define HOST_PTR_PRINTF "%lx"
# else
-# define HOST_PTR_PRINTF \
- (sizeof (int) == sizeof (char *) ? "%x" \
- : sizeof (long) == sizeof (char *) ? "%lx" : "%llx")
+# define HOST_PTR_PRINTF "%llx"
# endif
#endif /* ! HOST_PTR_PRINTF */