OSDN Git Service

* ldlang.c (Scan_for_self_assignment): Check an assignment tree to
authorNick Clifton <nickc@redhat.com>
Tue, 17 May 2005 14:35:21 +0000 (14:35 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 17 May 2005 14:35:21 +0000 (14:35 +0000)
commit042dc3486fc61af8bd9fd7f445fdfbe607a9afe5
treec87b6a03eb3972a6cbdf07435dae6d02f33c563b
parent2faa79b47ea36dacc7e5bf68f3f3b37437a49107
* 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