aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2006-10-26 00:17:49 +0000
committerBen Elliston <bje@au.ibm.com>2006-10-26 00:17:49 +0000
commit033cd5fdcdd4b2dbfa28ab5ee634822b48d20898 (patch)
treeb6c2c424756e078da148a37c15bca89e8ada9e0a /gas/write.c
parentba5f0fda8626f08b75117e8361a18497b4e0a1c4 (diff)
downloadgdb-033cd5fdcdd4b2dbfa28ab5ee634822b48d20898.zip
gdb-033cd5fdcdd4b2dbfa28ab5ee634822b48d20898.tar.gz
gdb-033cd5fdcdd4b2dbfa28ab5ee634822b48d20898.tar.bz2
* write.c (chain_frchains_together_1): Assert that this function
never returns a pointer to the auto variable `dummy'.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/write.c b/gas/write.c
index 66a05a5..2b084e3 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -394,6 +394,7 @@ chain_frchains_together_1 (segT section, struct frchain *frchp)
}
}
assert (prev_frag->fr_type != 0);
+ assert (prev_frag != &dummy);
prev_frag->fr_next = 0;
return prev_frag;
}