diff options
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index b00b8467ec5..1926804d952 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -163,10 +163,12 @@ static int source_label_number = 1; #define FORCE_TEXT #endif -/* If there is a system stabs.h, use it. Otherwise, use our own. */ - -#ifndef HAVE_STABS_H -#include "gstab.h" +/* 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 <stab.h> @@ -494,7 +496,7 @@ dbxout_typedefs (syms) void dbxout_start_new_source_file (filename) - char *filename; + char *filename ATTRIBUTE_UNUSED; { #ifdef DBX_USE_BINCL struct dbx_file *n = (struct dbx_file *) xmalloc (sizeof *n); @@ -579,8 +581,8 @@ dbxout_source_line (file, filename, lineno) void dbxout_finish (file, filename) - FILE *file; - char *filename; + FILE *file ATTRIBUTE_UNUSED; + char *filename ATTRIBUTE_UNUSED; { #ifdef DBX_OUTPUT_MAIN_SOURCE_FILE_END DBX_OUTPUT_MAIN_SOURCE_FILE_END (file, filename); @@ -2187,7 +2189,7 @@ dbxout_symbol_name (decl, suffix, letter) static void dbxout_prepare_symbol (decl) - tree decl; + tree decl ATTRIBUTE_UNUSED; { #ifdef WINNING_GDB char *filename = DECL_SOURCE_FILE (decl); @@ -2680,7 +2682,7 @@ dbxout_really_begin_function (decl) void dbxout_begin_function (decl) - tree decl; + tree decl ATTRIBUTE_UNUSED; { #ifdef DBX_FUNCTION_FIRST dbxout_really_begin_function (decl); |