libgcc2.c (top_elt): Remove top_elt, it isn't thread safe.
authorMike Stump <mrs@wrs.com>
Mon, 23 Nov 1998 20:37:32 +0000 (20:37 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 Nov 1998 20:37:32 +0000 (15:37 -0500)
commitd0b9a143e7552eef02291ab94d986867acb828ee
tree08c5c3cd1e8bdb4d696dd40cbaf8638a9b5cf655
parent8c8a9717085130efbd17e89ab68aa25bc8e8ef0d
libgcc2.c (top_elt): Remove top_elt, it isn't thread safe.

* libgcc2.c (top_elt): Remove top_elt, it isn't thread safe.
The strategy we now use is to pre allocate the top_elt along
with the EH context so that each thread has its own top_elt.
This is necessary as the dynmanic cleanup chain is used on the
top element of the stack and each thread MUST have its own.
(eh_context_static): Likewise.
(new_eh_context): Likewise.
(__sjthrow): Likewise.

From-SVN: r23818
gcc/ChangeLog
gcc/libgcc2.c