aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2004-09-24 06:17:07 +0000
committerEric Botcazou <ebotcazou@libertysurf.fr>2004-09-24 06:17:07 +0000
commitb7fd5951ed2fefe3ad4ff9fecf4760450ef203cd (patch)
tree158cf50046eaac97425a94833a0a484ea974467a /gcc/dbxout.c
parentd8874ba8a528f1b838b8e77abde07add2e1bb998 (diff)
* config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
if the GNU assembler is used. (sparc-*-solaris2*): Likewise. * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero. (dbxout_function_end): Protect N_ENSYM with it. (dbxout_begin_prologue): Protect N_BNSYM with it. * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it. * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1. * config/sparc/sol2-gas.h: New file. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@88013 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 22eaf27dfb7..8dd153e151a 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -150,6 +150,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define NO_DBX_FUNCTION_END 0
#endif
+#ifndef NO_DBX_BNSYM_ENSYM
+#define NO_DBX_BNSYM_ENSYM 0
+#endif
+
enum typestatus {TYPE_UNSEEN, TYPE_XREF, TYPE_DEFINED};
/* Structure recording information about a C data type.
@@ -487,7 +491,7 @@ dbxout_function_end (void)
fprintf (asmfile, "\n");
#endif
- if (!flag_debug_only_used_symbols)
+ if (!NO_DBX_BNSYM_ENSYM && !flag_debug_only_used_symbols)
fprintf (asmfile, "%s%d,0,0\n", ASM_STABD_OP, N_ENSYM);
}
#endif /* DBX_DEBUGGING_INFO */
@@ -794,6 +798,7 @@ dbxout_begin_prologue (unsigned int lineno, const char *filename)
{
if (use_gnu_debug_info_extensions
&& !NO_DBX_FUNCTION_END
+ && !NO_DBX_BNSYM_ENSYM
&& !flag_debug_only_used_symbols)
fprintf (asmfile, "%s%d,0,0\n", ASM_STABD_OP, N_BNSYM);