From: Alan Modra Date: Tue, 19 Nov 2002 07:32:28 +0000 (+0000) Subject: * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL. X-Git-Tag: cagney-unwind-20030108-branchpoint~713 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81283cde509465d8486730bde2e8b5468795932f;p=external%2Fbinutils.git * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5f7e79b..e785974 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2002-11-19 Luke Deller + + * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL. + 2002-11-18 Kevin Buettner * dwarf2dbg.h (dwarf2_format): New enum. 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) {