From fcd42b1e55fb1fb044f703eac10788ba6aa3d1d7 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 8 May 2005 10:13:19 +0000 Subject: * Makefile.in (cs-tconfig.h): Pass USED_FOR_TARGET to mkconfig.sh * aclocal.m4 (GCC_TARGET_TEMPLATE, AH_TEMPLATE): New. * configure.ac (enable_checking): Fix typos in runtime_checking. (ENABLE_RUNTIME_CHECKING): Mark as target template. (xm_file): Prepend auto-host.h (HAVE_GAS_HIDDEN, HAVE_LD_EH_FRAME_HDR): Mark as target template. * mkconfig.sh: Do not automatically define USED_FOR_TARGET in tconfig.h. * crtstuff.c: Do not include auto-host.h. (IN_LIBGCC2): Do not define. * gcov-io.h: Include tconfig.h, not auto-host.h. * libgcc2.c: Do not include auto-host.h. (abort): Do not undefine. * libgcov.c: Remove unneeded comment about config.h. * unwind-dw2-fde-glibc.c: Do not inlude auto-host.h. * config.in, configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99386 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/aclocal.m4 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gcc/aclocal.m4') diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index ad7f518f8ed..98c56a47af0 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -654,3 +654,25 @@ AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) + + +dnl GCC_TARGET_TEMPLATE(KEY) +dnl ------------------------ +dnl Define KEY as a valid configure key on the target machine. + +m4_define([GCC_TARGET_TEMPLATE], +[m4_define([GCC_TARGET_TEMPLATE($1)],[])]) + +dnl AH_TEMPLATE(KEY, DESCRIPTION) +dnl ----------------------------- +dnl Issue an autoheader template for KEY, i.e., a comment composed of +dnl DESCRIPTION (properly wrapped), and then #undef KEY. Redefinition +dnl of the macro in autoheader.m4, to support definition of only a few +dnl keys while compiling target libraries. + +m4_define([AH_TEMPLATE], +[AH_VERBATIM([$1],m4_text_wrap([$2 */], [ ], [/* ]) +m4_ifdef([GCC_TARGET_TEMPLATE($1)],[],[#ifndef USED_FOR_TARGET +])[#undef $1]m4_ifdef([GCC_TARGET_TEMPLATE($1)],[],[ +#endif +]))]) -- cgit v1.2.1