diff options
author | Richard Henderson <rth@redhat.com> | 1999-11-08 00:44:52 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-11-08 00:44:52 +0000 |
commit | 98007ce7b0dea06f0c04d833d39b5a9c9773a07a (patch) | |
tree | c4e9a8c91cbcea39f927aa160ca4a706f905643d /gas | |
parent | d6c497c760bf5401ceb36602a62dd33411c9488c (diff) | |
download | gdb-98007ce7b0dea06f0c04d833d39b5a9c9773a07a.zip gdb-98007ce7b0dea06f0c04d833d39b5a9c9773a07a.tar.gz gdb-98007ce7b0dea06f0c04d833d39b5a9c9773a07a.tar.bz2 |
* config/tc-alpha.c (alpha_align): Check, don't assert, that
the previous label was in the current section before playing
with auto-alignment.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/tc-alpha.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 54a48bf..f21f66d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +1999-11-07 Richard Henderson <rth@cygnus.com> + + * config/tc-alpha.c (alpha_align): Check, don't assert, that + the previous label was in the current section before playing + with auto-alignment. + 1999-11-06 Nick Clifton <nickc@cygnus.com> * config/tc-v850.c (v850_force_relocation): Force relocation 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. */ |