From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22505 invoked by alias); 12 Jul 2014 18:44:47 -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 22485 invoked by uid 89); 12 Jul 2014 18:44:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-wi0-f169.google.com Received: from mail-wi0-f169.google.com (HELO mail-wi0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 12 Jul 2014 18:44:45 +0000 Received: by mail-wi0-f169.google.com with SMTP id n3so740040wiv.0 for ; Sat, 12 Jul 2014 11:44:42 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.158.164 with SMTP id wv4mr576309wjb.124.1405190682660; Sat, 12 Jul 2014 11:44:42 -0700 (PDT) Received: by 10.216.168.4 with HTTP; Sat, 12 Jul 2014 11:44:42 -0700 (PDT) In-Reply-To: <53C0576A.3080001@net-b.de> References: <53C0576A.3080001@net-b.de> Date: Sat, 12 Jul 2014 18:44:00 -0000 Message-ID: Subject: Re: [Patch, Fortran] Update atomics support for TS18508 From: Paul Richard Thomas To: Tobias Burnus Cc: gcc-patches , gfortran Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-07/txt/msg00884.txt.bz2 Dear Tobias, OK for trunk. Thanks for the patch. Paul On 11 July 2014 23:30, Tobias Burnus wrote: > This patch updates the atomic support for TS18508, namely: > =E2=80=93 The atomic intrinsics now take a STAT=3D argument > =E2=80=93 Add the new atomics atomic_{add,and,or,xor} and their fetch var= iants > atomic_fetch_{add,and,or,xor} =E2=80=93 and compare and swap (atomic_cas) > > In addition, the previous implementation (for -fcoarray=3Dsingle) used si= mple > assignments; the patch changes those to using real atomic operations, whi= ch > makes the atomic operations thread safe. > > Build and regtested on x86-64-gnu-linux. > OK for the trunk? > > > As next step, library calls have to be added for -fcoarray=3Dlib. For > coarrays, I also a have still on my to do list: Adding a type-conversion > test case for -fcorray=3Dlib; implementing in the library the support for > vector subscripts; and fixing an issue with nonallocatable polymorphic du= mmy > coarrays and select type. > For full F2008 support, the following is needed as well: locking and > critical blocks =E2=80=93 and allocatable/pointer components of derived t= ypes. For > TS18508 much more is needed, in particular co_reduce/co_broadcast and team > support. > > Tobias --=20 The knack of flying is learning how to throw yourself at the ground and mis= s. --Hitchhikers Guide to the Galaxy