aboutsummaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-24 01:19:09 +0000
committerRichard Stallman <rms@gnu.org>1992-10-24 01:19:09 +0000
commited5f8355747cdd5880fa9969c1e963d6d6c0096a (patch)
treeda17e6dfeaf2a826d7b438f31e68fdc7df64326f /gcc/sdbout.c
parent36b6a921037654a1d687e7b813d54d3565792635 (diff)
downloadgcc-ed5f8355747cdd5880fa9969c1e963d6d6c0096a.zip
gcc-ed5f8355747cdd5880fa9969c1e963d6d6c0096a.tar.gz
gcc-ed5f8355747cdd5880fa9969c1e963d6d6c0096a.tar.bz2
(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
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index 4fa568d..4c3b24d 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));