projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b6a92
)
(sdbout_symbol): Return if a symbol's DECL_NAME is
author
Richard Stallman
<rms@gnu.org>
Sat, 24 Oct 1992 01:19:09 +0000
(
01:19
+0000)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/gcc/sdbout.c
b/gcc/sdbout.c
index 4fa568dce1035374d5e5af4e47677ae5e63ff01f..4c3b24dabc2f09ced346ff2106349e4cfdbdb1e9 100644
(file)
--- 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));