From 805e22b2051e9c6a75377ea6599654d7415da483 Mon Sep 17 00:00:00 2001 From: zack Date: Mon, 16 Dec 2002 18:23:00 +0000 Subject: Merge basic-improvements-branch to trunk git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60174 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/unwind-sjlj.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'gcc/unwind-sjlj.c') diff --git a/gcc/unwind-sjlj.c b/gcc/unwind-sjlj.c index e1063b4a9c1..535804c1166 100644 --- a/gcc/unwind-sjlj.c +++ b/gcc/unwind-sjlj.c @@ -21,6 +21,8 @@ #include "tconfig.h" #include "tsystem.h" +#include "coretypes.h" +#include "tm.h" #include "unwind.h" #include "gthr.h" @@ -91,16 +93,10 @@ static struct SjLj_Function_Context *fc_static; static __gthread_key_t fc_key; static int use_fc_key = -1; -static void -fc_key_dtor (void *ptr) -{ - __gthread_key_dtor (fc_key, ptr); -} - static void fc_key_init (void) { - use_fc_key = __gthread_key_create (&fc_key, fc_key_dtor) == 0; + use_fc_key = __gthread_key_create (&fc_key, 0) == 0; } static void -- cgit v1.2.1