From 0d24f4d1314fbfc9a42fe7839179d20dc2e6b0dd Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 8 Jan 2002 19:03:20 +0000 Subject: Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or except.h. * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or except.h. Remove commands to define USING_SJLJ_EXCEPTIONS. (cppinit.o): Depend on except.h. (gencheck.h, options.h, specs.h, s-gencheck, s-options, s-specs): New rules. * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION. Don't create specs.h/options.h/gencheck.h here. Remove unnecessary variable settings from last argument of AC_OUTPUT. * config.in, configure: Regenerate. * intl.c: Hardcode package name as "gcc". * cppinit.c: Include except.h. (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when appropriate. * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c: Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if (!)USING_SJLJ_EXCEPTIONS. * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__. From-SVN: r48651 --- gcc/cppinit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/cppinit.c') diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 93b2702..c0f0348 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -28,6 +28,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "version.h" #include "mkdeps.h" #include "cppdefault.h" +#include "except.h" /* for USING_SJLJ_EXCEPTIONS */ /* Predefined symbols, built-in macros, and the default include path. */ @@ -641,6 +642,10 @@ static const struct builtin builtin_array[] = X("__USER_LABEL_PREFIX__", ULP), C("__REGISTER_PREFIX__", REGISTER_PREFIX), C("__HAVE_BUILTIN_SETJMP__", "1"), +#if USING_SJLJ_EXCEPTIONS + /* libgcc needs to know this. */ + C("__USING_SJLJ_EXCEPTIONS__","1"), +#endif #ifndef NO_BUILTIN_SIZE_TYPE C("__SIZE_TYPE__", SIZE_TYPE), #endif -- cgit v1.1