]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
authorJulian Brown <julian@codesourcery.com>
Wed, 18 May 2005 13:57:35 +0000 (13:57 +0000)
committerJulian Brown <julian@codesourcery.com>
Wed, 18 May 2005 13:57:35 +0000 (13:57 +0000)
commit4c506f7f04e08cbf2cdff33036c59f937c535b23
tree2f6beb5c5e943f71a812c7176552becc7751899d
parent520c5f6ca4bc5172512e8af4425793c852f9068a
* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
see if the same value is being used on the rhs as on the lhs.
(print_assignment): Call scan_for_self_assignment and if it
returns true, do no display the result of the computation but
instead just the final value of the symbol on the lhs.
* ld.texinfo: Document this behaviour and provide an example of
when it will happen.
ld/ChangeLog
ld/ld.texinfo
ld/ldlang.c