From a34079694852c4223bd777154ed18dbaa319c07a Mon Sep 17 00:00:00 2001
From: rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri, 13 Aug 2004 20:15:33 +0000
Subject: [PATCH]         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.   
      (dbxout_function_end): Remove ifdefs for it.        
 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85955 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog |  6 ++++++
 gcc/dbxout.c  | 10 +++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f6376e36f7ff..dc116926994f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-13  Richard Henderson  <rth@redhat.com>
+
+	* dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
+	(dbxout_function_end): Remove ifdefs for it.
+	(dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
+
 2004-08-13  Richard Henderson  <rth@redhat.com>
 
 	* Makefile.in (insn-preds.o): Depend on TREE_H.
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 55f2275094f9..f6948a0bd72e 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -146,6 +146,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #define STABS_GCC_MARKER "gcc2_compiled."
 #endif
 
+#ifndef NO_DBX_FUNCTION_END
+#define NO_DBX_FUNCTION_END 0
+#endif
+
 enum typestatus {TYPE_UNSEEN, TYPE_XREF, TYPE_DEFINED};
 
 /* Structure recording information about a C data type.
@@ -464,9 +468,7 @@ dbxout_function_end (void)
      which may be undesirable, and is unnecessary if we do not have
      named sections.  */
   if (!use_gnu_debug_info_extensions
-#if defined(NO_DBX_FUNCTION_END)
       || NO_DBX_FUNCTION_END
-#endif
       || !targetm.have_named_sections)
     return;
 
@@ -761,7 +763,9 @@ dbxout_source_file (FILE *file, const char *filename)
 static void
 dbxout_begin_prologue (unsigned int lineno, const char *filename)
 {
-  if (!flag_debug_only_used_symbols)
+  if (use_gnu_debug_info_extensions
+      && !NO_DBX_FUNCTION_END
+      && !flag_debug_only_used_symbols)
     fprintf (asmfile, "%s%d,0,0\n", ASM_STABD_OP, N_BNSYM);
 
   dbxout_source_line (lineno, filename);
-- 
GitLab