summaryrefslogtreecommitdiff
path: root/gcc/aclocal.m4
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-07-06 18:17:41 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-07-06 18:17:41 +0000
commit092f7be3b124e3e0ca97600c82adedcc0ecd4132 (patch)
tree231b03d6dc23f93e9b0d4854a0cb6f83ed72b158 /gcc/aclocal.m4
parent93de5c31054212951fbf9f9d33a682dec33ee508 (diff)
downloadgcc-092f7be3b124e3e0ca97600c82adedcc0ecd4132.tar.gz
Redesign GCC_FUNC_PRINTF_PTR so that it doesn't define HOST_PTR_PRINTF directly.
Redesign GCC_FUNC_PRINTF_PTR so that it doesn't define HOST_PTR_PRINTF directly. Instead, autoconf will only determine whether "%p" works and its up to machmode.h to base its definition of HOST_PTR_PRINTF on that. This ensures that machmode.h is always included to get the definition of HOST_PTR_PRINTF for lossy hosts or cross compiles where "%p" is not found. * aclocal.m4 (GCC_FUNC_PRINTF_PTR): Don't define HOST_PTR_PRINTF. Instead, define a new macro HAVE_PRINTF_PTR which only signifies whether we have the %p format specifier or not. * acconfig.h: Delete stub for HOST_PTR_PRINTF, add HAVE_PRINTF_PTR. * machmode.h (HOST_PTR_PRINTF): When determining the definition, check HAVE_PRINTF_PTR to see whether "%p" is okay. * mips-tfile.c: Include machmode.h to get HOST_PTR_PRINTF. * Makefile.in (mips-tfile.o): Depend on machmode.h. From-SVN: r20953
Diffstat (limited to 'gcc/aclocal.m4')
-rw-r--r--gcc/aclocal.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4
index fea020129d2..febe8a70054 100644
--- a/gcc/aclocal.m4
+++ b/gcc/aclocal.m4
@@ -78,7 +78,7 @@ main()
gcc_cv_func_printf_ptr=no)
rm -f core core.* *.core])
if test $gcc_cv_func_printf_ptr = yes ; then
- AC_DEFINE(HOST_PTR_PRINTF, "%p")
+ AC_DEFINE(HAVE_PRINTF_PTR)
fi
])