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
This commit is contained in:
David Edelsohn 2003-07-02 17:50:37 +00:00 committed by David Edelsohn
parent 5208b50b05
commit f23b9d529c
2 changed files with 16 additions and 3 deletions

View File

@ -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

View File

@ -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