(sdbout_symbol): Return if a symbol's DECL_NAME is
authorRichard Stallman <rms@gnu.org>
Sat, 24 Oct 1992 01:19:09 +0000 (01:19 +0000)
committerRichard Stallman <rms@gnu.org>
Sat, 24 Oct 1992 01:19:09 +0000 (01:19 +0000)
empty, since we won't be able to make a symtab of it.

From-SVN: r2585

gcc/sdbout.c

index 4fa568d..4c3b24d 100644 (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));