aboutsummaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2001-04-18 06:15:38 +0000
committerZack Weinberg <zack@gcc.gnu.org>2001-04-18 06:15:38 +0000
commitad087b92db9cd796f6ca3e2c3d5730a4d1b5fda0 (patch)
tree890e674f479298825b48ff5b827cd8d6c288f352 /gcc/xcoffout.c
parent599d54fd8e0f0cdd0332af0b9c02825f7c0a1599 (diff)
downloadgcc-ad087b92db9cd796f6ca3e2c3d5730a4d1b5fda0.zip
gcc-ad087b92db9cd796f6ca3e2c3d5730a4d1b5fda0.tar.gz
gcc-ad087b92db9cd796f6ca3e2c3d5730a4d1b5fda0.tar.bz2
dbxout.c (dbxout_init): If DBX_OUTPUT_GCC_MARKER is defined, use it instead of blindly generating a .stabs.
* dbxout.c (dbxout_init): If DBX_OUTPUT_GCC_MARKER is defined, use it instead of blindly generating a .stabs. * xcoffout.h: Define DBX_OUTPUT_GCC_MARKER so we put the type in the right place. * xcoffout.c: Don't bother defining default for N_CATCH. (UNKNOWN_STAB): Use internal_error. (stab_to_sclass): Remove now-unnecessary aborts. Remove #if 0'ed case N_BROWS. Add #ifdef N_OPT block. From-SVN: r41404
Diffstat (limited to 'gcc/xcoffout.c')
-rw-r--r--gcc/xcoffout.c44
1 files changed, 9 insertions, 35 deletions
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index 6c8c2fe..ea0a5b7 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -45,11 +45,6 @@ Boston, MA 02111-1307, USA. */
#include "gstab.h"
#else
#include <stab.h>
-
-/* This is a GNU extension we need to reference in this file. */
-#ifndef N_CATCH
-#define N_CATCH 0x54
-#endif
#endif
/* Line number of beginning of current function, minus one.
@@ -178,10 +173,7 @@ xcoff_output_standard_types (syms)
/* Print an error message for unrecognized stab codes. */
#define UNKNOWN_STAB(STR) \
- do { \
- error ("Unknown stab %s: : 0x%x\n", STR, stab); \
- fflush (stderr); \
- } while (0)
+ internal_error ("No sclass for %s stab (0x%x)\n", STR, stab)
/* Conversion routine from BSD stabs to AIX storage classes. */
@@ -196,7 +188,6 @@ stab_to_sclass (stab)
case N_FNAME:
UNKNOWN_STAB ("N_FNAME");
- abort ();
case N_FUN:
return C_FUN;
@@ -208,7 +199,6 @@ stab_to_sclass (stab)
#ifdef N_MAIN
case N_MAIN:
UNKNOWN_STAB ("N_MAIN");
- abort ();
#endif
case N_RSYM:
@@ -216,7 +206,6 @@ stab_to_sclass (stab)
case N_SSYM:
UNKNOWN_STAB ("N_SSYM");
- abort ();
case N_RPSYM:
return C_RPSYM;
@@ -232,59 +221,43 @@ stab_to_sclass (stab)
case N_SO:
UNKNOWN_STAB ("N_SO");
- abort ();
case N_SOL:
UNKNOWN_STAB ("N_SOL");
- abort ();
case N_SLINE:
UNKNOWN_STAB ("N_SLINE");
- abort ();
#ifdef N_DSLINE
case N_DSLINE:
UNKNOWN_STAB ("N_DSLINE");
- abort ();
#endif
#ifdef N_BSLINE
case N_BSLINE:
UNKNOWN_STAB ("N_BSLINE");
- abort ();
-#endif
-#if 0
- /* This has the same value as N_BSLINE. */
- case N_BROWS:
- UNKNOWN_STAB ("N_BROWS");
- abort ();
#endif
#ifdef N_BINCL
case N_BINCL:
UNKNOWN_STAB ("N_BINCL");
- abort ();
#endif
#ifdef N_EINCL
case N_EINCL:
UNKNOWN_STAB ("N_EINCL");
- abort ();
#endif
#ifdef N_EXCL
case N_EXCL:
UNKNOWN_STAB ("N_EXCL");
- abort ();
#endif
case N_LBRAC:
UNKNOWN_STAB ("N_LBRAC");
- abort ();
case N_RBRAC:
UNKNOWN_STAB ("N_RBRAC");
- abort ();
case N_BCOMM:
return C_BCOMM;
@@ -295,31 +268,32 @@ stab_to_sclass (stab)
case N_LENG:
UNKNOWN_STAB ("N_LENG");
- abort ();
case N_PC:
UNKNOWN_STAB ("N_PC");
- abort ();
#ifdef N_M2C
case N_M2C:
UNKNOWN_STAB ("N_M2C");
- abort ();
#endif
#ifdef N_SCOPE
case N_SCOPE:
UNKNOWN_STAB ("N_SCOPE");
- abort ();
#endif
+#ifdef N_CATCH
case N_CATCH:
UNKNOWN_STAB ("N_CATCH");
- abort ();
+#endif
+
+#ifdef N_OPT
+ case N_OPT:
+ UNKNOWN_STAB ("N_OPT");
+#endif
default:
- UNKNOWN_STAB ("default");
- abort ();
+ UNKNOWN_STAB ("?");
}
}