From: Ben Elliston Date: Thu, 26 Oct 2006 00:17:49 +0000 (+0000) Subject: * write.c (chain_frchains_together_1): Assert that this function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=033cd5fdcdd4b2dbfa28ab5ee634822b48d20898;p=binutils-gdb.git * write.c (chain_frchains_together_1): Assert that this function never returns a pointer to the auto variable `dummy'. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index edfdd6658b6..0a08ce94652 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -3,6 +3,9 @@ * dw2gencfi.c (cfi_add_CFA_offset): Assert DWARF2_CIE_DATA_ALIGNMENT is non-zero. + * write.c (chain_frchains_together_1): Assert that this function + never returns a pointer to the auto variable `dummy'. + 2006-10-25 Trevor Smigiel Yukishige Shibata Nobuhisa Fujinami diff --git a/gas/write.c b/gas/write.c index 66a05a530fa..2b084e3a01f 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; }