aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-alpha.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-11-19 07:32:28 +0000
committerAlan Modra <amodra@gmail.com>2002-11-19 07:32:28 +0000
commit81283cde509465d8486730bde2e8b5468795932f (patch)
tree70c53c8b036c4a937a53bc0b87f33c5032fba636 /gas/config/tc-alpha.c
parentcdcf6e38a2691f0e76cf70b0d421ed5f15d30d02 (diff)
downloadgdb-81283cde509465d8486730bde2e8b5468795932f.zip
gdb-81283cde509465d8486730bde2e8b5468795932f.tar.gz
gdb-81283cde509465d8486730bde2e8b5468795932f.tar.bz2
* config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
Diffstat (limited to 'gas/config/tc-alpha.c')
-rw-r--r--gas/config/tc-alpha.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c
index 7c8a00d..9fb53bf 100644
--- a/gas/config/tc-alpha.c
+++ b/gas/config/tc-alpha.c
@@ -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)
{