This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix libgomp crash without TLS (PR42616)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Varvara Rainchik <varvara dot s dot rainchik at gmail dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 8 Dec 2014 15:03:52 +0100
- Subject: Re: Fix libgomp crash without TLS (PR42616)
- Authentication-results: sourceware.org; auth=none
- References: <CAAp9h93vx+cM=sNNRzKd0FNABrt96TEmRoU=WOEZnyYrm6zkqQ at mail dot gmail dot com> <CAAp9h91Gd6nauh5Vm4bStXwKcMDdc_fDs+xHtZa1c7DziCpv3g at mail dot gmail dot com> <20140930095219 dot GA1986 at tucnak dot redhat dot com> <542AC0F4 dot 9090808 at redhat dot com> <CAAp9h92JrSYjicz1A2ysfNniXAVk2LkE9WsLNiGXQehgS2yKdQ at mail dot gmail dot com> <20141007071125 dot GE1986 at tucnak dot redhat dot com> <CAAp9h91_2rLg8_GsNcaiA5D9MuTcUiskxkufdydENok1OAxLZQ at mail dot gmail dot com> <CAAp9h91yhuDnD607RO4+=E8DFVfrMKpN5kAa9nCzsq8_XqeTuw at mail dot gmail dot com> <CAAp9h921vFhhu+-6-SsRnN9kqP1SGfO+enciwXw4FoP26UfmcA at mail dot gmail dot com> <CAAp9h900CX-Fxu2inY35xf7rf29ZoFN88kwGUwy2bP_smW6s-g at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Dec 08, 2014 at 04:30:46PM +0300, Varvara Rainchik wrote:
> Hi guys,
>
> Could you please take a look at this issue? This fix is still urgent
> for Android.
I'm afraid it will break those targets where emutls is not on, but the C
library doesn't support TLS. I think it is acceptable not to care about
#pragma omp from different pthread_create created threads in that case, but
stopping support completely might be too early.
So, can you instead arrange for HAVE_TLS to be defined if emutls is
supported (check for that during configure)?
Jakub