From 98007ce7b0dea06f0c04d833d39b5a9c9773a07a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 8 Nov 1999 00:44:52 +0000 Subject: * config/tc-alpha.c (alpha_align): Check, don't assert, that the previous label was in the current section before playing with auto-alignment. --- gas/config/tc-alpha.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gas/config/tc-alpha.c') diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 3ca8e63..a77e7b6 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -4756,14 +4756,13 @@ alpha_align (n, pfill, label, force) alpha_current_align = n; - if (label != NULL) + if (label != NULL && S_GET_SEGMENT (label) == now_seg) { - assert (S_GET_SEGMENT (label) == now_seg); symbol_set_frag (label, frag_now); S_SET_VALUE (label, (valueT) frag_now_fix ()); } - record_alignment(now_seg, n); + record_alignment (now_seg, n); /* ??? if alpha_flag_relax && force && elf, record the requested alignment in a reloc for the linker to see. */ -- cgit v1.1