OSDN Git Service

PR 5990
authorian <ian>
Sat, 28 Feb 2009 03:05:07 +0000 (03:05 +0000)
committerian <ian>
Sat, 28 Feb 2009 03:05:07 +0000 (03:05 +0000)
commit1c2e381ed3b47c0a8cae21bb33c6f0d3e1c1d525
tree5f2fa545e791d754398e84d9388f6a29edc53eb6
parenta9f4ce0b96f02600118b0809296de15268ed7a73
PR 5990
* descriptors.h (Open_descriptor): Add is_on_stack field.
* descriptors.cc (Descriptors::open): If the descriptor is on the
top of the stack, remove it.  Initialize is_on_stack field.
(Descriptors::release): Only add pod to stack if it is not on the
stack already.
(Descriptors::close_some_descriptor): Clear stack_next and
is_on_stack fields.
gold/ChangeLog
gold/descriptors.cc
gold/descriptors.h