]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
authorAlan Modra <amodra@gmail.com>
Tue, 19 Nov 2002 07:34:41 +0000 (07:34 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 19 Nov 2002 07:34:41 +0000 (07:34 +0000)
gas/ChangeLog
gas/config/tc-alpha.c

index ab604b7e70839713e9f113e93d25b66917a61b90..26d34d0365b8a16bff12386cea9dfcd17cb2ce1e 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-13  Alan Modra  <amodra@bigpond.net.au>
 
        Merge from mainline.
index ae43b02e4420ee8b8f4af89a0edb20aee34abf80..b9faadf144b8e9dcaff4d6f68f6074d934f19471 100644 (file)
@@ -4526,7 +4526,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)
     {