aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <edelsohn@gnu.org>2003-07-02 17:50:37 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2003-07-02 13:50:37 -0400
commitf23b9d529ca997e52b58d5f1785074bff8834ac3 (patch)
tree40ea085640f166fe8ede94a3c1a59a0e8a3c53c0
parent5208b50b05316bd5db18166ec7c752b0b1980c0d (diff)
downloadgcc-f23b9d529ca997e52b58d5f1785074bff8834ac3.zip
gcc-f23b9d529ca997e52b58d5f1785074bff8834ac3.tar.gz
gcc-f23b9d529ca997e52b58d5f1785074bff8834ac3.tar.bz2
dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
* dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS. (emit_bincl_stab): Same. (emit_pending_bincls): Same. From-SVN: r68848
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/dbxout.c13
2 files changed, 16 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 89afad4..435a0c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-02 David Edelsohn <edelsohn@gnu.org>
+
+ * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
+ (emit_bincl_stab): Same.
+ (emit_pending_bincls): Same.
+
2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
PR c++/11072
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index f648bfe..b39f627 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -195,7 +195,7 @@ struct dbx_file GTY(())
struct dbx_file *prev; /* Chain to traverse all pending bincls. */
};
-#ifdef DBX_DEBUGGING_INFO
+#ifdef DBX_USE_BINCLS
/* If zero then there is no pending BINCL. */
static int pending_bincls = 0;
#endif
@@ -317,8 +317,10 @@ static int current_sym_nchars;
#define CONTIN do { } while (0)
#endif
+#ifdef DBX_USE_BINCLS
static void emit_bincl_stab (const char *c);
static void emit_pending_bincls (void);
+#endif
static inline void emit_pending_bincls_if_required (void);
static void dbxout_init (const char *);
@@ -559,6 +561,7 @@ dbxout_typedefs (tree syms)
}
}
+#ifdef DBX_USE_BINCL
/* Emit BINCL stab using given name. */
static void
emit_bincl_stab (const char *name)
@@ -573,10 +576,8 @@ emit_bincl_stab (const char *name)
static inline void
emit_pending_bincls_if_required ()
{
-#ifdef DBX_USE_BINCL
if (pending_bincls)
emit_pending_bincls ();
-#endif
}
/* Emit all pending bincls. */
@@ -612,6 +613,12 @@ emit_pending_bincls ()
pending_bincls = 0;
}
+#else
+
+static inline void
+emit_pending_bincls_if_required () {}
+#endif
+
/* Change to reading from a new source file. Generate a N_BINCL stab. */
static void