aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-10-01 06:46:16 +0000
committerAlan Modra <amodra@gmail.com>2012-10-01 06:46:16 +0000
commit4fc0b46e62cec696390862c9eb7d80b35d24f0f8 (patch)
tree9927f38c78bba69ca6f74476a2543a45e804d655 /gas/write.c
parented8960ecbc0ce624e1e30f0cf0abaeedf7a4938f (diff)
downloadgdb-4fc0b46e62cec696390862c9eb7d80b35d24f0f8.zip
gdb-4fc0b46e62cec696390862c9eb7d80b35d24f0f8.tar.gz
gdb-4fc0b46e62cec696390862c9eb7d80b35d24f0f8.tar.bz2
* write.c (chain_frchains_together_1): Reorder assertion to avoid
uninit warning.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/write.c b/gas/write.c
index a467147..56ebb6c 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -406,8 +406,8 @@ chain_frchains_together_1 (segT section, struct frchain *frchp)
prev_fix = frchp->fix_tail;
}
}
- gas_assert (prev_frag->fr_type != 0);
- gas_assert (prev_frag != &dummy);
+ gas_assert (prev_frag != &dummy
+ && prev_frag->fr_type != 0);
prev_frag->fr_next = 0;
return prev_frag;
}