mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* stabsread.c (common_block_end, fix_common_block): Stash the
struct pending * in the SYMBOL_TYPE, not the SYMBOL_NAMESPACE, so as to not assume that a pointer fits in an enum.
This commit is contained in:
@@ -3576,7 +3576,7 @@ common_block_end (objfile)
|
||||
for (j = common_block_i; j < common_block->nsyms; j++)
|
||||
add_symbol_to_list (common_block->symbol[j], &new);
|
||||
|
||||
SYMBOL_NAMESPACE (sym) = (enum namespace)((long) new);
|
||||
SYMBOL_TYPE (sym) = (struct type *) new;
|
||||
|
||||
/* Should we be putting local_symbols back to what it was?
|
||||
Does it matter? */
|
||||
@@ -3596,7 +3596,7 @@ fix_common_block (sym, valu)
|
||||
struct symbol *sym;
|
||||
int valu;
|
||||
{
|
||||
struct pending *next = (struct pending *) SYMBOL_NAMESPACE (sym);
|
||||
struct pending *next = (struct pending *) SYMBOL_TYPE (sym);
|
||||
for ( ; next; next = next->next)
|
||||
{
|
||||
register int j;
|
||||
|
||||
Reference in New Issue
Block a user