* 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)
commit3b83e13a450c5ecc419369bf0e413a895cb52608
tree3d75763cf719ec8aadcd1cf7be88e91e0155ae17
parentc3357c6410a943a30157dff506e9496061957750
* 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