summaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-14 18:01:06 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-14 18:01:06 +0000
commitc918563733503635c90b00b773ddf14ec0385867 (patch)
tree8ea154caeb8d251af662a569e902f435014cf29f /gcc/sdbout.c
parent48a5030be5a14a488204c0f2a74c697c56312f68 (diff)
downloadgcc-c918563733503635c90b00b773ddf14ec0385867.tar.gz
Remove MIPS_DEBUGGING_INFO support
* dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling. (dwarf2out_do_cfi_asm): Likewise. * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO handling. (add_data_member_location_attribute): Likewise. (gen_array_type_die): Likewise. (gen_subprogram_die): Likewise. (gen_producer_string): Likewise. * sdbout.c (sdbout_begin_prologue): Declare unconditionally. Remove MIPS_DEBUGGING_INFO handling. (sdb_debug_hooks): Likewise. (sdbout_begin_block): Likewise. (sdbout_end_block): Likewise. (sdbout_begin_prologue): Likewise. (sdbout_start_source_file): Likewise. (sdbout_end_source_file): Likewise. (sdbout_init): Likewise. * system.h (MIPS_DEBUGGING_INFO): Poison. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185395 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c86
1 files changed, 9 insertions, 77 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 255c68e7b04..6f24933d8df 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -1,6 +1,6 @@
/* Output sdb-format symbol table information from GNU compiler.
Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
+ 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of GCC.
@@ -120,9 +120,7 @@ static void sdbout_end_block (unsigned int, unsigned int);
static void sdbout_source_line (unsigned int, const char *, int, bool);
static void sdbout_end_epilogue (unsigned int, const char *);
static void sdbout_global_decl (tree);
-#ifndef MIPS_DEBUGGING_INFO
static void sdbout_begin_prologue (unsigned int, const char *);
-#endif
static void sdbout_end_prologue (unsigned int, const char *);
static void sdbout_begin_function (tree);
static void sdbout_end_function (unsigned int);
@@ -275,33 +273,6 @@ do { fprintf (asm_out_file, "\t.tag\t"); \
if ((int) line <= sdb_begin_function_line) \
line = sdb_begin_function_line + 1
-/* Perform linker optimization of merging header file definitions together
- for targets with MIPS_DEBUGGING_INFO defined. This won't work without a
- post 960826 version of GAS. Nothing breaks with earlier versions of GAS,
- the optimization just won't be done. The native assembler already has the
- necessary support. */
-
-#ifdef MIPS_DEBUGGING_INFO
-
-/* ECOFF linkers have an optimization that does the same kind of thing as
- N_BINCL/E_INCL in stabs: eliminate duplicate debug information in the
- executable. To achieve this, GCC must output a .file for each file
- name change. */
-
-/* This is a stack of input files. */
-
-struct sdb_file
-{
- struct sdb_file *next;
- const char *name;
-};
-
-/* This is the top of the stack. */
-
-static struct sdb_file *current_file;
-
-#endif /* MIPS_DEBUGGING_INFO */
-
/* The debug hooks structure. */
const struct gcc_debug_hooks sdb_debug_hooks =
{
@@ -316,15 +287,8 @@ const struct gcc_debug_hooks sdb_debug_hooks =
sdbout_end_block, /* end_block */
debug_true_const_tree, /* ignore_block */
sdbout_source_line, /* source_line */
-#ifdef MIPS_DEBUGGING_INFO
- /* Defer on MIPS systems so that parameter descriptions follow
- function entry. */
- debug_nothing_int_charstar, /* begin_prologue */
- sdbout_end_prologue, /* end_prologue */
-#else
sdbout_begin_prologue, /* begin_prologue */
debug_nothing_int_charstar, /* end_prologue */
-#endif
debug_nothing_int_charstar, /* begin_epilogue */
sdbout_end_epilogue, /* end_epilogue */
sdbout_begin_function, /* begin_function */
@@ -1500,12 +1464,8 @@ sdbout_begin_block (unsigned int line, unsigned int n)
MAKE_LINE_SAFE (line);
/* The SCO compiler does not emit a separate block for the function level
- scope, so we avoid it here also. However, mips ECOFF compilers do emit
- a separate block, so we retain it when MIPS_DEBUGGING_INFO is defined. */
-#ifndef MIPS_DEBUGGING_INFO
- if (n != 1)
-#endif
- PUT_SDB_BLOCK_START (line - sdb_begin_function_line);
+ scope, so we avoid it here also. */
+ PUT_SDB_BLOCK_START (line - sdb_begin_function_line);
if (n == 1)
{
@@ -1534,12 +1494,9 @@ sdbout_end_block (unsigned int line, unsigned int n ATTRIBUTE_UNUSED)
MAKE_LINE_SAFE (line);
/* The SCO compiler does not emit a separate block for the function level
- scope, so we avoid it here also. However, mips ECOFF compilers do emit
- a separate block, so we retain it when MIPS_DEBUGGING_INFO is defined. */
-#ifndef MIPS_DEBUGGING_INFO
+ scope, so we avoid it here also. */
if (n != 1)
-#endif
- PUT_SDB_BLOCK_END (line - sdb_begin_function_line);
+ PUT_SDB_BLOCK_END (line - sdb_begin_function_line);
}
/* Output a line number symbol entry for source file FILENAME and line
@@ -1572,19 +1529,16 @@ sdbout_begin_function (tree decl ATTRIBUTE_UNUSED)
sdbout_symbol (current_function_decl, 0);
}
-/* Called at beginning of function body (before or after prologue,
- depending on MIPS_DEBUGGING_INFO). Record the function's starting
- line number, so we can output relative line numbers for the other
- lines. Describe beginning of outermost block. Also describe the
- parameter list. */
+/* Called at beginning of function body after prologue. Record the
+ function's starting line number, so we can output relative line numbers
+ for the other lines. Describe beginning of outermost block. Also
+ describe the parameter list. */
-#ifndef MIPS_DEBUGGING_INFO
static void
sdbout_begin_prologue (unsigned int line, const char *file ATTRIBUTE_UNUSED)
{
sdbout_end_prologue (line, file);
}
-#endif
static void
sdbout_end_prologue (unsigned int line, const char *file ATTRIBUTE_UNUSED)
@@ -1651,14 +1605,6 @@ static void
sdbout_start_source_file (unsigned int line ATTRIBUTE_UNUSED,
const char *filename ATTRIBUTE_UNUSED)
{
-#ifdef MIPS_DEBUGGING_INFO
- struct sdb_file *n = XNEW (struct sdb_file);
-
- n->next = current_file;
- n->name = filename;
- current_file = n;
- output_file_directive (asm_out_file, filename);
-#endif
}
/* Revert to reading a previous source file. */
@@ -1666,14 +1612,6 @@ sdbout_start_source_file (unsigned int line ATTRIBUTE_UNUSED,
static void
sdbout_end_source_file (unsigned int line ATTRIBUTE_UNUSED)
{
-#ifdef MIPS_DEBUGGING_INFO
- struct sdb_file *next;
-
- next = current_file->next;
- free (current_file);
- current_file = next;
- output_file_directive (asm_out_file, current_file->name);
-#endif
}
/* Set up for SDB output at the start of compilation. */
@@ -1683,12 +1621,6 @@ sdbout_init (const char *input_file_name ATTRIBUTE_UNUSED)
{
tree t;
-#ifdef MIPS_DEBUGGING_INFO
- current_file = XNEW (struct sdb_file);
- current_file->next = NULL;
- current_file->name = input_file_name;
-#endif
-
deferred_global_decls = VEC_alloc (tree, gc, 12);
/* Emit debug information which was queued by sdbout_symbol before