Commit f23b9d52 by David Edelsohn Committed by David Edelsohn

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
parent 5208b50b
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment