From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46428 invoked by alias); 6 Jun 2018 00:44:08 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 46240 invoked by uid 89); 6 Jun 2018 00:44:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*RU:sk:2018060, Hx-spam-relays-external:sk:2018060 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mtaout003-public.msg.strl.va.charter.net Received: from mtaout003-public.msg.strl.va.charter.net (HELO mtaout003-public.msg.strl.va.charter.net) (68.114.190.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Jun 2018 00:44:05 +0000 Received: from impout003 ([68.114.189.18]) by mtaout003.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20180606004404.WYTO7355.mtaout003.msg.strl.va.charter.net@impout003>; Tue, 5 Jun 2018 19:44:04 -0500 Received: from [192.168.1.6] ([96.41.213.35]) by impout003 with charter.net id vCji1x00S0mPCJg01Ck3GX; Tue, 05 Jun 2018 19:44:04 -0500 X-Authority-Analysis: v=2.2 cv=HqsGIwbS c=1 sm=1 tr=0 a=NNeuWy7OTYa7gJ+3pFFB5Q==:117 a=NNeuWy7OTYa7gJ+3pFFB5Q==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=RrYPGTyJeRdTYQQhHuAA:9 a=QEXdDO2ut3YA:10 X-Auth-id: anZkZWxpc2xlQGNoYXJ0ZXIubmV0 Subject: Re: [Patch, Fortran] PR25829: Asynchronous I/O (v2) To: Rainer Orth , Nicolas Koenig Cc: =?UTF-8?Q?Dominique_d'Humi=c3=a8res?= , gfortran , gcc-patches References: <2d034881-6f3d-58bb-11e0-37e227c2c995@koenigni.com> From: Jerry DeLisle Message-ID: <6b2ebe6c-e60d-1f82-e31c-7233ecad70ed@charter.net> Date: Wed, 06 Jun 2018 00:44:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-06/txt/msg00018.txt.bz2 On 06/05/2018 06:58 AM, Rainer Orth wrote: > Hi Nicolas, > >> Because they were originally intended for the gfortran test suite, but I >> couldn't run it there because of libpthread. I will change the numbering >> scheme. > > the way that libpthread dependency is currently handled seems weird to > me: right now it is only dragged in via -fopenmp, although libgomp isn't > otherwise used AFAICS. Is this really supposed to work this way? And > what about targets that don't have pthreads? Isn't supposed to > abstract away from the details of the underlying threading library? From my perspective, since async is a feature of the language it should not require any special flags, just link to pthread always. If a user does not use it, it will most likely be optimized out. Jerry