Commit ad087b92 by Zack Weinberg

dbxout.c (dbxout_init): If DBX_OUTPUT_GCC_MARKER is defined, use it instead of…

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
parent 599d54fd
2001-04-17 Zack Weinberg <zackw@stanford.edu>
* 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.
Tue Apr 17 21:41:11 2001 Jeffrey A Law (law@cygnus.com) Tue Apr 17 21:41:11 2001 Jeffrey A Law (law@cygnus.com)
* jump.c (mark_all_labels): Canonicalize the tail recursion * jump.c (mark_all_labels): Canonicalize the tail recursion
......
...@@ -428,9 +428,13 @@ dbxout_init (asm_file, input_file_name, syms) ...@@ -428,9 +428,13 @@ dbxout_init (asm_file, input_file_name, syms)
ASM_OUTPUT_INTERNAL_LABEL (asmfile, "Ltext", 0); ASM_OUTPUT_INTERNAL_LABEL (asmfile, "Ltext", 0);
#endif /* no DBX_OUTPUT_MAIN_SOURCE_FILENAME */ #endif /* no DBX_OUTPUT_MAIN_SOURCE_FILENAME */
#ifdef DBX_OUTPUT_GCC_MARKER
DBX_OUTPUT_GCC_MARKER (asmfile);
#else
/* Emit an N_OPT stab to indicate that this file was compiled by GCC. */ /* Emit an N_OPT stab to indicate that this file was compiled by GCC. */
fprintf (asmfile, "%s\"%s\",%d,0,0,0\n", fprintf (asmfile, "%s\"%s\",%d,0,0,0\n",
ASM_STABS_OP, STABS_GCC_MARKER, N_OPT); ASM_STABS_OP, STABS_GCC_MARKER, N_OPT);
#endif
lastfile = input_file_name; lastfile = input_file_name;
......
...@@ -45,11 +45,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -45,11 +45,6 @@ Boston, MA 02111-1307, USA. */
#include "gstab.h" #include "gstab.h"
#else #else
#include <stab.h> #include <stab.h>
/* This is a GNU extension we need to reference in this file. */
#ifndef N_CATCH
#define N_CATCH 0x54
#endif
#endif #endif
/* Line number of beginning of current function, minus one. /* Line number of beginning of current function, minus one.
...@@ -178,10 +173,7 @@ xcoff_output_standard_types (syms) ...@@ -178,10 +173,7 @@ xcoff_output_standard_types (syms)
/* Print an error message for unrecognized stab codes. */ /* Print an error message for unrecognized stab codes. */
#define UNKNOWN_STAB(STR) \ #define UNKNOWN_STAB(STR) \
do { \ internal_error ("No sclass for %s stab (0x%x)\n", STR, stab)
error ("Unknown stab %s: : 0x%x\n", STR, stab); \
fflush (stderr); \
} while (0)
/* Conversion routine from BSD stabs to AIX storage classes. */ /* Conversion routine from BSD stabs to AIX storage classes. */
...@@ -196,7 +188,6 @@ stab_to_sclass (stab) ...@@ -196,7 +188,6 @@ stab_to_sclass (stab)
case N_FNAME: case N_FNAME:
UNKNOWN_STAB ("N_FNAME"); UNKNOWN_STAB ("N_FNAME");
abort ();
case N_FUN: case N_FUN:
return C_FUN; return C_FUN;
...@@ -208,7 +199,6 @@ stab_to_sclass (stab) ...@@ -208,7 +199,6 @@ stab_to_sclass (stab)
#ifdef N_MAIN #ifdef N_MAIN
case N_MAIN: case N_MAIN:
UNKNOWN_STAB ("N_MAIN"); UNKNOWN_STAB ("N_MAIN");
abort ();
#endif #endif
case N_RSYM: case N_RSYM:
...@@ -216,7 +206,6 @@ stab_to_sclass (stab) ...@@ -216,7 +206,6 @@ stab_to_sclass (stab)
case N_SSYM: case N_SSYM:
UNKNOWN_STAB ("N_SSYM"); UNKNOWN_STAB ("N_SSYM");
abort ();
case N_RPSYM: case N_RPSYM:
return C_RPSYM; return C_RPSYM;
...@@ -232,59 +221,43 @@ stab_to_sclass (stab) ...@@ -232,59 +221,43 @@ stab_to_sclass (stab)
case N_SO: case N_SO:
UNKNOWN_STAB ("N_SO"); UNKNOWN_STAB ("N_SO");
abort ();
case N_SOL: case N_SOL:
UNKNOWN_STAB ("N_SOL"); UNKNOWN_STAB ("N_SOL");
abort ();
case N_SLINE: case N_SLINE:
UNKNOWN_STAB ("N_SLINE"); UNKNOWN_STAB ("N_SLINE");
abort ();
#ifdef N_DSLINE #ifdef N_DSLINE
case N_DSLINE: case N_DSLINE:
UNKNOWN_STAB ("N_DSLINE"); UNKNOWN_STAB ("N_DSLINE");
abort ();
#endif #endif
#ifdef N_BSLINE #ifdef N_BSLINE
case N_BSLINE: case N_BSLINE:
UNKNOWN_STAB ("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 #endif
#ifdef N_BINCL #ifdef N_BINCL
case N_BINCL: case N_BINCL:
UNKNOWN_STAB ("N_BINCL"); UNKNOWN_STAB ("N_BINCL");
abort ();
#endif #endif
#ifdef N_EINCL #ifdef N_EINCL
case N_EINCL: case N_EINCL:
UNKNOWN_STAB ("N_EINCL"); UNKNOWN_STAB ("N_EINCL");
abort ();
#endif #endif
#ifdef N_EXCL #ifdef N_EXCL
case N_EXCL: case N_EXCL:
UNKNOWN_STAB ("N_EXCL"); UNKNOWN_STAB ("N_EXCL");
abort ();
#endif #endif
case N_LBRAC: case N_LBRAC:
UNKNOWN_STAB ("N_LBRAC"); UNKNOWN_STAB ("N_LBRAC");
abort ();
case N_RBRAC: case N_RBRAC:
UNKNOWN_STAB ("N_RBRAC"); UNKNOWN_STAB ("N_RBRAC");
abort ();
case N_BCOMM: case N_BCOMM:
return C_BCOMM; return C_BCOMM;
...@@ -295,31 +268,32 @@ stab_to_sclass (stab) ...@@ -295,31 +268,32 @@ stab_to_sclass (stab)
case N_LENG: case N_LENG:
UNKNOWN_STAB ("N_LENG"); UNKNOWN_STAB ("N_LENG");
abort ();
case N_PC: case N_PC:
UNKNOWN_STAB ("N_PC"); UNKNOWN_STAB ("N_PC");
abort ();
#ifdef N_M2C #ifdef N_M2C
case N_M2C: case N_M2C:
UNKNOWN_STAB ("N_M2C"); UNKNOWN_STAB ("N_M2C");
abort ();
#endif #endif
#ifdef N_SCOPE #ifdef N_SCOPE
case N_SCOPE: case N_SCOPE:
UNKNOWN_STAB ("N_SCOPE"); UNKNOWN_STAB ("N_SCOPE");
abort ();
#endif #endif
#ifdef N_CATCH
case N_CATCH: case N_CATCH:
UNKNOWN_STAB ("N_CATCH"); UNKNOWN_STAB ("N_CATCH");
abort (); #endif
#ifdef N_OPT
case N_OPT:
UNKNOWN_STAB ("N_OPT");
#endif
default: default:
UNKNOWN_STAB ("default"); UNKNOWN_STAB ("?");
abort ();
} }
} }
......
...@@ -172,6 +172,10 @@ extern const char *xcoff_lastfile; ...@@ -172,6 +172,10 @@ extern const char *xcoff_lastfile;
} \ } \
} }
/* .stabx has the type in a different place. */
#define DBX_OUTPUT_GCC_MARKER(FILE) \
fprintf ((FILE), "%s\"%s\",0,%d,0\n", ASM_STABS_OP, STABS_GCC_MARKER, N_OPT)
/* Do not break .stabs pseudos into continuations. */ /* Do not break .stabs pseudos into continuations. */
#define DBX_CONTIN_LENGTH 0 #define DBX_CONTIN_LENGTH 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment