From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by sourceware.org (Postfix) with ESMTPS id 4E9E63858CDA; Thu, 30 Mar 2023 19:05:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4E9E63858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=troutmask.apl.washington.edu Authentication-Results: sourceware.org; spf=none smtp.mailfrom=troutmask.apl.washington.edu Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.17.1/8.17.1) with ESMTPS id 32UJ5N6S089770 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 30 Mar 2023 12:05:23 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.17.1/8.17.1/Submit) id 32UJ5N1D089769; Thu, 30 Mar 2023 12:05:23 -0700 (PDT) (envelope-from sgk) Date: Thu, 30 Mar 2023 12:05:23 -0700 From: Steve Kargl To: Thomas Koenig via Fortran Cc: Andrew Pinski , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix fc-prototypes usage with C_INT64_T and non LP64 Targets. Message-ID: Reply-To: sgk@troutmask.apl.washington.edu References: <20230330034753.3661606-1-apinski@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Mar 30, 2023 at 07:39:55PM +0200, Thomas Koenig via Fortran wrote: > Hi Andrew, > > > "long long". This was just an oversight and a missing check. > > > > Committed as obvious after a bootstrap/test on x86_64-linux-gnu. > > Thanks! > > I think this one is obvious enough that it deserves a backport. > I've cherry-picked this for gcc12, will do gcc11 tomorrow. > The patch is incomplete. module foo use, intrinsic :: iso_c_binding implicit none public :: bar type, bind(c) :: bar real(10) a end type end module This yields typedef struct bar { long_double a /* WARNING: Converting 'REAL(10)' to interoperable type */; } bar; That should be 'long double'. -- Steve