diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2011-04-06 01:06:42 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2011-04-06 01:06:42 +0000 |
commit | f55dfa2fe141d4ce30b313d652fe5b1cbcd7668a (patch) | |
tree | fe97b3bbcf1e4f0ddc41e3aff3eb1c89886bcddb /gcc | |
parent | 4bb28d9f2e68fa24ee511038df08fb78312ff120 (diff) | |
download | gcc-f55dfa2fe141d4ce30b313d652fe5b1cbcd7668a.zip gcc-f55dfa2fe141d4ce30b313d652fe5b1cbcd7668a.tar.gz gcc-f55dfa2fe141d4ce30b313d652fe5b1cbcd7668a.tar.bz2 |
re PR bootstrap/48471 (ia64-*-* does not bootstrap due to unused variables in dbxout.c)
PR bootstrap/48471
* dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
Move these...
(symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
(DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
#ifdef DBX_DEBUGGING_INFO.
From-SVN: r172016
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/dbxout.c | 42 |
2 files changed, 30 insertions, 21 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0f9ce6c..f4b1f3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2011-04-05 Nathan Froyd <froydnj@codesourcery.com> + + PR bootstrap/48471 + * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index): + Move these... + (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these... + (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under + #ifdef DBX_DEBUGGING_INFO. + 2011-04-05 Bernd Schmidt <bernds@codesourcery.com> PR bootstrap/48403 diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 5ed9b69..715632d 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -96,27 +96,6 @@ along with GCC; see the file COPYING3. If not see #include "xcoffout.h" #endif -/* When -gused is used, emit debug info for only used symbols. But in - addition to the standard intercepted debug_hooks there are some - direct calls into this file, i.e., dbxout_symbol, dbxout_parms, and - dbxout_reg_params. Those routines may also be called from a higher - level intercepted routine. So to prevent recording data for an inner - call to one of these for an intercept, we maintain an intercept - nesting counter (debug_nesting). We only save the intercepted - arguments if the nesting is 1. */ -static int debug_nesting = 0; - -static tree *symbol_queue; -static int symbol_queue_index = 0; -static int symbol_queue_size = 0; - -#define DBXOUT_DECR_NESTING \ - if (--debug_nesting == 0 && symbol_queue_index > 0) \ - { emit_pending_bincls_if_required (); debug_flush_symbol_queue (); } - -#define DBXOUT_DECR_NESTING_AND_RETURN(x) \ - do {--debug_nesting; return (x);} while (0) - #ifndef ASM_STABS_OP # ifdef XCOFF_DEBUGGING_INFO # define ASM_STABS_OP "\t.stabx\t" @@ -926,6 +905,27 @@ dbxout_finish_complex_stabs (tree sym, stab_code_type code, #if defined (DBX_DEBUGGING_INFO) +/* When -gused is used, emit debug info for only used symbols. But in + addition to the standard intercepted debug_hooks there are some + direct calls into this file, i.e., dbxout_symbol, dbxout_parms, and + dbxout_reg_params. Those routines may also be called from a higher + level intercepted routine. So to prevent recording data for an inner + call to one of these for an intercept, we maintain an intercept + nesting counter (debug_nesting). We only save the intercepted + arguments if the nesting is 1. */ +static int debug_nesting = 0; + +static tree *symbol_queue; +static int symbol_queue_index = 0; +static int symbol_queue_size = 0; + +#define DBXOUT_DECR_NESTING \ + if (--debug_nesting == 0 && symbol_queue_index > 0) \ + { emit_pending_bincls_if_required (); debug_flush_symbol_queue (); } + +#define DBXOUT_DECR_NESTING_AND_RETURN(x) \ + do {--debug_nesting; return (x);} while (0) + static void dbxout_function_end (tree decl ATTRIBUTE_UNUSED) { |