* config/tc-ia64.c (slot_index): Check for a NULL first_frag.
This commit is contained in:
Nick Clifton 2005-06-08 15:47:45 +00:00
parent 6858915aa0
commit 985d94900d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-06-08 Nick Clifton <nickc@redhat.com>
PR 994
* config/tc-ia64.c (slot_index): Check for a NULL first_frag.
2005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> 2005-06-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* config/tc-m32r.c (use_parallel): Change default value from 1 to 0. * config/tc-m32r.c (use_parallel): Change default value from 1 to 0.

View File

@ -2655,7 +2655,7 @@ slot_index (slot_addr, slot_frag, first_addr, first_frag, before_relax)
/* If the two addresses are in different frags, then we need to add in /* If the two addresses are in different frags, then we need to add in
the remaining size of this frag, and then the entire size of intermediate the remaining size of this frag, and then the entire size of intermediate
frags. */ frags. */
while (slot_frag != first_frag) while (first_frag != NULL && slot_frag != first_frag)
{ {
unsigned long start_addr = (unsigned long) &first_frag->fr_literal; unsigned long start_addr = (unsigned long) &first_frag->fr_literal;