From b80901c73fc8231882b800f904b23b3bc32431bb Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 4 Dec 2003 00:54:16 +0000 Subject: [PATCH] 2003-11-24 H.J. Lu * config/tc-alpha.c (s_alpha_end): Don't crash if there is no matching .ent. --- gas/ChangeLog | 5 +++++ gas/config/tc-alpha.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index c53d37d573d..fe8ec765378 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2003-12-03 H.J. Lu + + * config/tc-alpha.c (s_alpha_end): Don't crash if there is no + matching .ent. + 2003-12-04 Alan Modra * tc.h (md_pcrel_from): Don't declare if defined as a macro. diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index f39c8a003d7..638551d59ab 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -4494,7 +4494,7 @@ s_alpha_end (dummy) as_warn (_(".end directive names different symbol than .ent")); /* Create an expression to calculate the size of the function. */ - if (sym) + if (sym && cur_frame_data) { OBJ_SYMFIELD_TYPE *obj = symbol_get_obj (sym); expressionS *exp = xmalloc (sizeof (expressionS)); -- 2.30.2