aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2003-12-04 00:54:16 +0000
committerH.J. Lu <hjl.tools@gmail.com>2003-12-04 00:54:16 +0000
commitb80901c73fc8231882b800f904b23b3bc32431bb (patch)
treeede7246d4a6499f3122c3a442e73fdcb9cbf3a9d /gas/config
parent77f091ddb51c460b34d10d583196a6b7202daf8d (diff)
downloadfsf-binutils-gdb-b80901c73fc8231882b800f904b23b3bc32431bb.zip
fsf-binutils-gdb-b80901c73fc8231882b800f904b23b3bc32431bb.tar.gz
fsf-binutils-gdb-b80901c73fc8231882b800f904b23b3bc32431bb.tar.bz2
2003-11-24 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-alpha.c (s_alpha_end): Don't crash if there is no matching .ent.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-alpha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c
index f39c8a0..638551d 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));