Date: Wed, 15 Sep 2010 11:02:08 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: David Xu <davidxu@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Alexander Kabaev <kabaev@gmail.com> Subject: Re: svn commit: r212630 - in head/lib/libthr: . thread Message-ID: <20100915080208.GG2465@deviant.kiev.zoral.com.ua> In-Reply-To: <4C90ABD8.1020609@freebsd.org> References: <201009150256.o8F2uXwX004579@svn.freebsd.org> <20100914231728.33ca7466@kan.dnsalias.net> <4C90ABD8.1020609@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--VRy2DAmnTueP9XfJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 15, 2010 at 11:19:52AM +0000, David Xu wrote: > Alexander Kabaev wrote: > >On Wed, 15 Sep 2010 02:56:33 +0000 (UTC) > >David Xu <davidxu@FreeBSD.org> 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 > >>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D > >>--- 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+=3D-I${.CURDIR}/../../libexec/rtld- > >>CFLAGS+=3D-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_CPUARCH} > >>CFLAGS+=3D-I${.CURDIR}/../libthread_db CFLAGS+=3D-Winline > >>+ > >>+LIBTHR_UNWIND_STACK=3Dyes > >>+ > >>+.ifdef LIBTHR_UNWIND_STACK > >>+CFLAGS+=3D-I${.CURDIR}/../../contrib/gcc -fexceptions=20 > >>+CFLAGS+=3D-D_PTHREAD_FORCED_UNWIND > >>+.endif > >>+ > >> > > > >Reaching into bowels of GCC like that is never good. > Any solution ? ;-) >=20 I think the used interfaces are part of the C++ ABI. As such, we can expect them to be present from the runtime support, and provide our own declarations in freebsd-implemented headers. --VRy2DAmnTueP9XfJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkyQfYAACgkQC3+MBN1Mb4jDzgCg8Q5xwHd6YJvZCssE1r5m3jX8 qzcAoK8B+Xdj/ApOpIFxdXqzKT4i3/BI =CmJ5 -----END PGP SIGNATURE----- --VRy2DAmnTueP9XfJ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100915080208.GG2465>