From patchwork Tue Jul 31 12:06:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Richard Thomas X-Patchwork-Id: 951569 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-482730-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="osYpjP3s"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="chfYLETF"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41fwD712Rrz9s1x for ; Tue, 31 Jul 2018 22:07:18 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=m31H6aOuUme4NxiXFBijsElHkNT/zXnfuj5JQLSd+sW w0mikgxwURgrgrKFSwYKe8VJ0jrg8zjkwjlvMrR4VaecaNnqa2zdumInRksl97VD O/3sjE46/AFpOylDZufJR9wevXYRebeWDtQ+MNdy9QuwCy6wSFnCzUWfm92P+XSY = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:cc:content-type; s=default; bh=yUV6bhm6j2rGO1eRATnbjJxNZQk=; b=osYpjP3sBjPYCPaHh E+4HvqPicfv28wSFc3q8/kecwgKycNcnxks7gUf2AE5RDW5umk8apLtlnt7RS61q RitOg8q3PZ0m3vfQ1Ey0Py3Pe7ZRiHqcDKUO5hcq7ebFIyfqW9eefIqpx6HYJtFC lCi1Lq+ZC2xb7cVkOZqNDzPM70= Received: (qmail 80919 invoked by alias); 31 Jul 2018 12:07:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 80893 invoked by uid 89); 31 Jul 2018 12:07:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=developed, HX-HELO:sk:mail-yw, U*pault, paultgccgnuorg X-HELO: mail-yw0-f171.google.com Received: from mail-yw0-f171.google.com (HELO mail-yw0-f171.google.com) (209.85.161.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Jul 2018 12:07:06 +0000 Received: by mail-yw0-f171.google.com with SMTP id e23-v6so5642908ywe.13; Tue, 31 Jul 2018 05:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=AkDWjqTozUZ2zCTisV73IWPna361uGVi+sWg7GZVDw8=; b=chfYLETFx/eRkxSZxoDCw00zNlxKT/OAs82+NspmafjW5CFCPjg/dMvGd5fpkP0KO0 Y/++tFT33SW6wC60yWKb11hZ9dR0I63ahhY+mzn7saGBxo/B7c/hv6Wq5EZo/yqmRjWV qHoeJKYDA43QYAz82cp3nWbWgkSmqxT7ZtTsCgoVFPveKl0rLnialm0IrAnceXpNvcV1 vLJ+V9dlkTmF6KD7VnaPSg7KvUed95DBNWmMU9ZapimfWlF8G+OYVQqhMx3maSIljeV7 vbayfZxA8BZ2a19ba5nfbExd+7fgkczz0G+Ig6ksq/RD1BZLX0jF5LRn0lf73ezwMtsF PdlA== MIME-Version: 1.0 From: Paul Richard Thomas Date: Tue, 31 Jul 2018 13:06:52 +0100 Message-ID: Subject: [Patch, fortran] A first small step towards CFI descriptor implementation To: "fortran@gcc.gnu.org" , gcc-patches Cc: Damian Rouson , celisdanieljr@gmail.com Daniel Celis Garza and Damian Rouson have developed a runtime library and include file for the TS 29113 and F2018 C descriptors. https://github.com/sourceryinstitute/ISO_Fortran_binding The ordering of types is different to the current 'bt' enum in libgfortran.h. This patch interchanges BT_DERIVED and BT_CHARACTER to fix this. Regtests on FC28/x86_64. OK for trunk? Cheers Paul 2018-07-31 Paul Thomas * gcc/fortran/libgfortran.h : In bt enum interchange BT_DERIVED and BT_CHARACTER for CFI descriptor compatibility(TS 29113). Index: gcc/fortran/libgfortran.h =================================================================== *** gcc/fortran/libgfortran.h (revision 262444) --- gcc/fortran/libgfortran.h (working copy) *************** typedef enum *** 171,177 **** used in the run-time library for IO. */ typedef enum { BT_UNKNOWN = 0, BT_INTEGER, BT_LOGICAL, BT_REAL, BT_COMPLEX, ! BT_DERIVED, BT_CHARACTER, BT_CLASS, BT_PROCEDURE, BT_HOLLERITH, BT_VOID, BT_ASSUMED, BT_UNION } bt; --- 171,177 ---- used in the run-time library for IO. */ typedef enum { BT_UNKNOWN = 0, BT_INTEGER, BT_LOGICAL, BT_REAL, BT_COMPLEX, ! BT_CHARACTER, BT_DERIVED, BT_CLASS, BT_PROCEDURE, BT_HOLLERITH, BT_VOID, BT_ASSUMED, BT_UNION } bt;