From: Alan Modra Date: Tue, 19 Nov 2002 07:34:41 +0000 (+0000) Subject: * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL. X-Git-Tag: binutils-2_13_2~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e22d20e4078f247bc0aa14afc4827ed38b57df0;p=thirdparty%2Fbinutils-gdb.git * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index ab604b7e708..26d34d0365b 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-13 Alan Modra Merge from mainline. diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index ae43b02e442..b9faadf144b 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -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) {