diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-02-28 03:05:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-02-28 03:05:08 +0000 |
commit | 61edd21fa41ccf31fe391ee320c4812c4d45486a (patch) | |
tree | c255bd0ec7a6fad35fcdba6b8b61760626d8fd69 /gold/descriptors.h | |
parent | PR 7091 (diff) | |
download | binutils-gdb-61edd21fa41ccf31fe391ee320c4812c4d45486a.tar.gz binutils-gdb-61edd21fa41ccf31fe391ee320c4812c4d45486a.tar.bz2 binutils-gdb-61edd21fa41ccf31fe391ee320c4812c4d45486a.zip |
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.
Diffstat (limited to 'gold/descriptors.h')
-rw-r--r-- | gold/descriptors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/descriptors.h b/gold/descriptors.h index 19333149287..44c2475087e 100644 --- a/gold/descriptors.h +++ b/gold/descriptors.h @@ -69,6 +69,8 @@ class Descriptors bool inuse; // Whether this is a write descriptor. bool is_write; + // Whether the descriptor is on the stack. + bool is_on_stack; }; bool |