diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-21 22:31:29 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-21 22:31:29 +0000 |
commit | cfbfd5e6f61b61ee0d498fabf21fc299315ed6a0 (patch) | |
tree | e96a43060e00e41ba881f4ab0fb88b8029be87bf /gcc/system.h | |
parent | cffff3aeabc75eae03fd283cffbfe61d8d469d87 (diff) | |
download | gcc-cfbfd5e6f61b61ee0d498fabf21fc299315ed6a0.tar.gz |
* machmode.h (HOST_PTR_PRINTF): Move from here ...
* system.h (HOST_PTR_PRINTF): ... to here.
* mips-tfile.c: Don't include machmode.h.
* Makefile.in (MACHMODE_H): New variable. Update to use it.
(mips-tfile.o): Don't depend on machmode.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29568 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index 9252098e8ec..fe8cae1071b 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -517,6 +517,17 @@ extern void abort (); # define mkdir(a,b) mkdir(a) #endif +/* Provide a way to print an address via printf. */ +#ifndef HOST_PTR_PRINTF +# 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 */ + /* Get libiberty declarations. */ #include "libiberty.h" |