This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Crash in remove_from_pending_weak_list
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Crash in remove_from_pending_weak_list
- From: Andreas Schwab <schwab at issan dot cs dot uni-dortmund dot de>
- Date: 10 Jun 1999 03:24:25 +0200
1999-06-09 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* varasm.c (remove_from_pending_weak_list): Don't crash if t->name
is already NULL.
--- gcc-2.95/gcc/varasm.c.~1~ Wed Jun 9 17:46:10 1999
+++ gcc-2.95/gcc/varasm.c Wed Jun 9 22:33:47 1999
@@ -4388,7 +4388,7 @@
struct weak_syms *t;
for (t = weak_decls; t; t = t->next)
{
- if (strcmp (name, t->name) == 0)
+ if (t->name && strcmp (name, t->name) == 0)
t->name = NULL;
}
}
--
Andreas Schwab "And now for something
schwab@issan.cs.uni-dortmund.de completely different"
schwab@gnu.org