* config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
authorAlan Modra <amodra@gmail.com>
Tue, 19 Nov 2002 07:32:28 +0000 (07:32 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 19 Nov 2002 07:32:28 +0000 (07:32 +0000)
gas/ChangeLog
gas/config/tc-alpha.c

index 5f7e79b3c88e92a2949ff93f0d08f57fe8faed1f..e785974d55c9a08d8c84017ea88e7f35aa5a2cb4 100644 (file)
@@ -1,3 +1,7 @@
+2002-11-19  Luke Deller <luked@cse.unsw.edu.au>
+
+       * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
+
 2002-11-18  Kevin Buettner  <kevinb@redhat.com>
 
        * dwarf2dbg.h (dwarf2_format): New enum.
index 7c8a00d3541d604add8d25f12c25bed5b1b4ea9e..9fb53bffe5128dab1fb3922f072807a568d61ff8 100644 (file)
@@ -4521,7 +4521,12 @@ s_alpha_prologue (ignore)
     sym = ecoff_get_cur_proc_sym ();
   else
     sym = alpha_cur_ent_sym;
-  know (sym != NULL);
+
+  if (sym == NULL)
+    {
+      as_bad (_(".prologue directive without a preceding .ent directive"));
+      return;
+    }
 
   switch (arg)
     {