This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Crash in remove_from_pending_weak_list


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]