diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-10 18:34:59 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-10 18:34:59 +0000 |
commit | d6d30f687d8d29d3ab3f73be8593ba2b51734799 (patch) | |
tree | f870aaec3f1de9ea9ed22e66acba25b278a32a80 /gcc/dbxout.c | |
parent | 5d122ee86607832e04687dacbb1922114aa91b43 (diff) | |
download | gcc-d6d30f687d8d29d3ab3f73be8593ba2b51734799.tar.gz |
2004-01-10 David Edelsohn <edelsohn@gnu.org>
James E Wilson <wilson@specifixinc.com>
PR debug/12860
* dbxout.c (dbxout_symbol): Remove initialization of
current_sym_code, current_sym_value, and current_sym_addr.
(dbxout_symbol_location): Same.
(dbxout_prepare_symbol): Zero current_sym_code,
current_sym_value, and current_sym_addr.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75644 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index e0044902357..dc0caf71ab8 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2047,11 +2047,6 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED) /* "Intercept" dbxout_symbol() calls like we do all debug_hooks. */ ++debug_nesting; - /* Cast avoids warning in old compilers. */ - current_sym_code = (STAB_CODE_TYPE) 0; - current_sym_value = 0; - current_sym_addr = 0; - /* Ignore nameless syms, but don't ignore type tags. */ if ((DECL_NAME (decl) == 0 && TREE_CODE (decl) != TYPE_DECL) @@ -2578,10 +2573,6 @@ dbxout_symbol_location (tree decl, tree type, const char *suffix, rtx home) else dbxout_symbol_location (decl, subtype, "$real", XEXP (home, 0)); - /* Cast avoids warning in old compilers. */ - current_sym_code = (STAB_CODE_TYPE) 0; - current_sym_value = 0; - current_sym_addr = 0; dbxout_prepare_symbol (decl); if (WORDS_BIG_ENDIAN) @@ -2649,6 +2640,14 @@ dbxout_prepare_symbol (tree decl ATTRIBUTE_UNUSED) dbxout_source_file (asmfile, filename); #endif + + /* Initialize variables used to communicate each symbol's debug + information to dbxout_finish_symbol with zeroes. */ + + /* Cast avoids warning in old compilers. */ + current_sym_code = (STAB_CODE_TYPE) 0; + current_sym_value = 0; + current_sym_addr = 0; } static void |