aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-06-08 15:47:45 +0000
committerNick Clifton <nickc@redhat.com>2005-06-08 15:47:45 +0000
commit985d94900d3fd3a8c49798ca6cc2192b321be2f4 (patch)
tree50ad503c0893a122ee84fb6f8e226c0db052e5fe /gas/config
parent6858915aa0f5cfc966c353f851ed7fc7bdf8ae15 (diff)
downloadgdb-985d94900d3fd3a8c49798ca6cc2192b321be2f4.zip
gdb-985d94900d3fd3a8c49798ca6cc2192b321be2f4.tar.gz
gdb-985d94900d3fd3a8c49798ca6cc2192b321be2f4.tar.bz2
PR 994
* config/tc-ia64.c (slot_index): Check for a NULL first_frag.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-ia64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index c84b4ef..b6eb6bb 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -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
the remaining size of this frag, and then the entire size of intermediate
frags. */
- while (slot_frag != first_frag)
+ while (first_frag != NULL && slot_frag != first_frag)
{
unsigned long start_addr = (unsigned long) &first_frag->fr_literal;