(sdbout_symbol): Return if a symbol's DECL_NAME is
empty, since we won't be able to make a symtab of it. From-SVN: r2585
This commit is contained in:
parent
36b6a92103
commit
ed5f835574
@ -715,6 +715,11 @@ sdbout_symbol (decl, local)
|
|||||||
&& DECL_INITIAL (decl))
|
&& DECL_INITIAL (decl))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* C++ in 2.3 makes nameless symbols. That will be fixed later.
|
||||||
|
For now, avoid crashing. */
|
||||||
|
if (DECL_NAME (decl) == NULL_TREE)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Record the name for, starting a symtab entry. */
|
/* Record the name for, starting a symtab entry. */
|
||||||
name = IDENTIFIER_POINTER (DECL_NAME (decl));
|
name = IDENTIFIER_POINTER (DECL_NAME (decl));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user