From f23b9d529ca997e52b58d5f1785074bff8834ac3 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 2 Jul 2003 17:50:37 +0000 Subject: 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 --- gcc/ChangeLog | 6 ++++++ gcc/dbxout.c | 13 ++++++++++--- 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 + + * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS. + (emit_bincl_stab): Same. + (emit_pending_bincls): Same. + 2003-07-02 Nathan Sidwell 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 -- cgit v1.1