PR 5990
commite562788606757ba617a3ed602a9f1c9626c05118
authorIan Lance Taylor <ian@airs.com>
Sat, 28 Feb 2009 03:05:08 +0000 (28 03:05 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 28 Feb 2009 03:05:08 +0000 (28 03:05 +0000)
tree928798198ee5f3516f05207a652602746da13128
parent2c3d87aa0312a665638d50559dd7f398062f0bf5
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