(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:
Richard Stallman 1992-10-24 01:19:09 +00:00
parent 36b6a92103
commit ed5f835574

View File

@ -715,6 +715,11 @@ sdbout_symbol (decl, local)
&& DECL_INITIAL (decl))
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. */
name = IDENTIFIER_POINTER (DECL_NAME (decl));