diff options
author | Alan Modra <amodra@bigpond.net.au> | 2012-10-01 06:46:15 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2012-10-01 06:46:15 +0000 |
commit | fec4394d16b8af9ce9b40d5a2974bdc6b70c9d6b (patch) | |
tree | e8394ca627b4110e9b9e05dd6e62b77fe7a281f8 /gas | |
parent | da72436797450a5858e10815e1c5dc230ad7f1ea (diff) | |
download | binutils-redhat-fec4394d16b8af9ce9b40d5a2974bdc6b70c9d6b.tar.gz |
* write.c (chain_frchains_together_1): Reorder assertion to avoid
uninit warning.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/write.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 246c02f03a..3e7778374d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2012-10-01 Alan Modra <amodra@gmail.com> + + * write.c (chain_frchains_together_1): Reorder assertion to avoid + uninit warning. + 2012-09-23 Richard Sandiford <rdsandiford@googlemail.com> * config/tc-mips.h (TC_FORCE_RELOCATION): Remove comment. diff --git a/gas/write.c b/gas/write.c index a4671475af..56ebb6c565 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; } |