From: Richard Stallman Date: Sat, 24 Oct 1992 01:19:09 +0000 (+0000) Subject: (sdbout_symbol): Return if a symbol's DECL_NAME is X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed5f8355747cdd5880fa9969c1e963d6d6c0096a;p=gcc.git (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 --- diff --git a/gcc/sdbout.c b/gcc/sdbout.c index 4fa568dce10..4c3b24dabc2 100644 --- a/gcc/sdbout.c +++ b/gcc/sdbout.c @@ -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));