diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-08 00:35:52 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-08 00:35:52 +0000 |
commit | 6f8178291d6a29282c4da1aedcf451c1172945a0 (patch) | |
tree | ff36bca69b7fbedb7d6cc5611fbd918944314e77 /gcc/system.h | |
parent | eb35aa89e69ec3ed513cd9cdd429faa2df6c2ea7 (diff) | |
download | gcc-6f8178291d6a29282c4da1aedcf451c1172945a0.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69061 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/system.h b/gcc/system.h index 37d68f5f572..adfb90ef8b5 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 */ |