Commit a2a0019f by David Edelsohn

re PR debug/12860 (stabs register number out of range)

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.

From-SVN: r75644
parent bb3f5384
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.
2004-01-10 Richard Sandiford <rsandifo@redhat.com> 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
* tree.c (get_unwidened): Reorder conditions so that the null pointer * tree.c (get_unwidened): Reorder conditions so that the null pointer
...@@ -16,8 +26,8 @@ ...@@ -16,8 +26,8 @@
2004-01-09 Andrew Pinski <pinskia@physics.uc.edu> 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
PR debug/11231 PR debug/11231
* dbxout.c (dbxout_type_fields): Return if any item is error_mark_node or the * dbxout.c (dbxout_type_fields): Return if any item is
type is error_mark_node. error_mark_node or the type is error_mark_node.
2004-01-09 Geoffrey Keating <geoffk@apple.com> 2004-01-09 Geoffrey Keating <geoffk@apple.com>
......
...@@ -2047,11 +2047,6 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED) ...@@ -2047,11 +2047,6 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED)
/* "Intercept" dbxout_symbol() calls like we do all debug_hooks. */ /* "Intercept" dbxout_symbol() calls like we do all debug_hooks. */
++debug_nesting; ++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. */ /* Ignore nameless syms, but don't ignore type tags. */
if ((DECL_NAME (decl) == 0 && TREE_CODE (decl) != TYPE_DECL) 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) ...@@ -2578,10 +2573,6 @@ dbxout_symbol_location (tree decl, tree type, const char *suffix, rtx home)
else else
dbxout_symbol_location (decl, subtype, "$real", XEXP (home, 0)); 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); dbxout_prepare_symbol (decl);
if (WORDS_BIG_ENDIAN) if (WORDS_BIG_ENDIAN)
...@@ -2649,6 +2640,14 @@ dbxout_prepare_symbol (tree decl ATTRIBUTE_UNUSED) ...@@ -2649,6 +2640,14 @@ dbxout_prepare_symbol (tree decl ATTRIBUTE_UNUSED)
dbxout_source_file (asmfile, filename); dbxout_source_file (asmfile, filename);
#endif #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 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