From owner-svn-src-all@FreeBSD.ORG Wed Sep 15 14:17:51 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF23D1065673; Wed, 15 Sep 2010 14:17:51 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 8C14A8FC18; Wed, 15 Sep 2010 14:17:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o8FECRfv088473; Wed, 15 Sep 2010 08:12:27 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 15 Sep 2010 08:12:34 -0600 (MDT) Message-Id: <20100915.081234.83306312380114674.imp@bsdimp.com> To: kabaev@gmail.com From: "M. Warner Losh" In-Reply-To: <20100914231728.33ca7466@kan.dnsalias.net> References: <201009150256.o8F2uXwX004579@svn.freebsd.org> <20100914231728.33ca7466@kan.dnsalias.net> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, davidxu@freebsd.org Subject: Re: svn commit: r212630 - in head/lib/libthr: . thread X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2010 14:17:51 -0000 In message: <20100914231728.33ca7466@kan.dnsalias.net> Alexander Kabaev writes: : On Wed, 15 Sep 2010 02:56:33 +0000 (UTC) : David Xu wrote: : : > Author: davidxu : > Date: Wed Sep 15 02:56:32 2010 : > New Revision: 212630 : > URL: http://svn.freebsd.org/changeset/base/212630 : > : > Log: : > add code to support stack unwinding when thread exits. note that : > only defer-mode cancellation works, asynchrnous mode does not work : > because it lacks of libuwind's support. stack unwinding is not : > enabled unless LIBTHR_UNWIND_STACK is defined in Makefile. : > : > Modified: : > head/lib/libthr/Makefile : > head/lib/libthr/thread/thr_clean.c : > head/lib/libthr/thread/thr_create.c : > head/lib/libthr/thread/thr_exit.c : > head/lib/libthr/thread/thr_init.c : > head/lib/libthr/thread/thr_private.h : > : > Modified: head/lib/libthr/Makefile : > ============================================================================== : > --- head/lib/libthr/Makefile Wed Sep 15 01:21:30 2010 : > (r212629) +++ head/lib/libthr/Makefile Wed Sep 15 02:56:32 : > 2010 (r212630) @@ -25,6 +25,14 @@ : > CFLAGS+=-I${.CURDIR}/../../libexec/rtld- : > CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_CPUARCH} : > CFLAGS+=-I${.CURDIR}/../libthread_db CFLAGS+=-Winline : > + : > +LIBTHR_UNWIND_STACK=yes : > + : > +.ifdef LIBTHR_UNWIND_STACK : > +CFLAGS+=-I${.CURDIR}/../../contrib/gcc -fexceptions : > +CFLAGS+=-D_PTHREAD_FORCED_UNWIND : > +.endif : > + : > : : Reaching into bowels of GCC like that is never good. Would this pulling in GPL'd code? Warner