From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114316 invoked by alias); 24 Sep 2015 15:57:52 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 114304 invoked by uid 89); 24 Sep 2015 15:57:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 24 Sep 2015 15:57:50 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 7110A45; Thu, 24 Sep 2015 15:57:49 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-44.ams2.redhat.com [10.36.116.44]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8OFvljT032142 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 24 Sep 2015 11:57:49 -0400 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id t8OFvkZf012300; Thu, 24 Sep 2015 17:57:46 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id t8OFvjOk012299; Thu, 24 Sep 2015 17:57:45 +0200 Date: Thu, 24 Sep 2015 16:13:00 -0000 From: Jakub Jelinek To: Alexander Monakov Cc: gcc-patches@gcc.gnu.org, Arutyun Avetisyan Subject: Re: [gomp4 7/8] libgomp: work around missing pthread_attr_t on nvptx Message-ID: <20150924155745.GH1847@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <1443028942-4081-1-git-send-email-amonakov@ispras.ru> <1443028942-4081-8-git-send-email-amonakov@ispras.ru> <20150924073432.GA1847@tucnak.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg01877.txt.bz2 On Thu, Sep 24, 2015 at 06:18:10PM +0300, Alexander Monakov wrote: > > I'd prefer here the https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01418.html > > changes to libgomp.h and associated configury changes. > > OK, like the following? > > [gomp4] libgomp: guard pthreads usage by LIBGOMP_USE_PTHREADS > > This allows to avoid referencing pthread types and functions on nvptx. > > * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it... > (LIBGOMP_USE_PTHREADS): ...here; new define. > * configure: Regenerate. > * config.h.in: Likewise. > * libgomp.h: Guard pthread.h inclusion. > (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS. > (gomp_init_thread_affinity): Ditto. Yeah, thanks. Jakub