From 7719ffbf1ded6d87084c813e56bddd91136dd9f3 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 1 May 2001 01:58:32 +0000 Subject: dbxout.c, [...]: Always include gstab.h, not system stab.h. * dbxout.c, mips-tfile.c, config/mips/mips.c, xcoffout.c: Always include gstab.h, not system stab.h. Don't provide default definitions of N_CATCH or N_OPT. Always use the gstab.h variant of STAB_CODE_TYPE. * final.c: Don't include stab.h/gstab.h at all, or provide defaults for N_SLINE and N_SOL. * xcoffout.c: Can assume N_MAIN, N_DSLINE, N_BSLINE, N_BINCL, N_EINCL, N_EXCL, N_M2C, N_SCOPE, N_CATCH, and N_OPT are available. * sdbout.c: Always include gsyms.h instead of system syms.h. * configure.in: No need to check for stab.h. * configure, config.in: Regenerate. * Makefile.in (final.o): Don't depend on gstab.h. From-SVN: r41713 --- gcc/dbxout.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'gcc/dbxout.c') diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 1252e2b..d057c58 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -145,9 +145,6 @@ Boston, MA 02111-1307, USA. */ #endif #endif -/* Typical USG systems don't have stab.h, and they also have - no use for DBX-format debugging info. */ - #if defined (DBX_DEBUGGING_INFO) || defined (XCOFF_DEBUGGING_INFO) static int flag_minimal_debug = MINIMAL_DEBUG; @@ -170,31 +167,9 @@ static int source_label_number = 1; #define FORCE_TEXT #endif -/* If there is a system stab.h, use it. Otherwise, use our own. */ -/* ??? This is supposed to describe the target's stab format, so using - the host HAVE_STAB_H appears to be wrong. For now, we use our own file - when cross compiling. */ -#if defined (USG) || !defined (HAVE_STAB_H) || defined (CROSS_COMPILE) -#include "gstab.h" /* If doing DBX on sysV, use our own stab.h. */ -#else -#include +#include "gstab.h" -/* This is a GNU extension we need to reference in this file. */ -#ifndef N_CATCH -#define N_CATCH 0x54 -#endif - -/* This is a Solaris extension we need to reference in this file. */ -#ifndef N_OPT -#define N_OPT 0x3c -#endif -#endif - -#ifdef __GNU_STAB__ #define STAB_CODE_TYPE enum __stab_debug_code -#else -#define STAB_CODE_TYPE int -#endif /* 1 if PARM is passed to this function in memory. */ -- cgit v1.1