From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22211 invoked by alias); 6 May 2011 16:20:11 -0000 Received: (qmail 22174 invoked by uid 22791); 6 May 2011 16:20:07 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from out01.dlls.pa.frontiernet.net (HELO out01.dlls.pa.frontiernet.net) (199.224.80.228) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 May 2011 16:19:51 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFEfxE0yI+jm/2dsb2JhbACmTMUYhgkEhj2NXIoz Received: from relay01.dlls.pa.frontiernet.net ([199.224.80.244]) by out01.dlls.pa.frontiernet.net with ESMTP; 06 May 2011 16:18:31 +0000 X-Previous-IP: 50.35.232.230 Received: from quava.localdomain (unknown [50.35.232.230]) by relay01.dlls.pa.frontiernet.net (Postfix) with ESMTPA id CCD2530C0AD; Fri, 6 May 2011 16:18:30 +0000 (UTC) Message-ID: <4DC41F55.3090203@frontier.com> Date: Fri, 06 May 2011 16:22:00 -0000 From: Jerry DeLisle User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tobias Burnus CC: gcc patches , gfortran Subject: Re: [Patch, Fortran] -std=f2008tr, TR 29113 and OPTIONAL arguments with BIND(C) References: <4DC23986.6080904@net-b.de> In-Reply-To: <4DC23986.6080904@net-b.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2011-05/txt/msg00530.txt.bz2 On 05/04/2011 10:45 PM, Tobias Burnus wrote: > This patch does the first minor steps towards TR 29113: It accepts the OPTIONAL > attribute in procedures with C binding. As gfortran already passes absent > arguments a NULL pointer, there is no changed needed, except in the diagnostics > part. Additionally, it is a feature also supported by other compilers. > > Additionally, this patch adds the option -std=f2008tr (tr = Technical > Report(s)), which is supposed to cover Fortran 2008 and the two technical > reports, TR 29113 (further interop with C) and the TR about enhanced coarray > support. > > I think it would be nice if TYPE(*) and DIMENSION(..) could also be implemented > during the 4.7 development period as they are useful for C interoperability > ("void *buffer") - and in particular for MPI 3; additionally, they do not seem > to be that difficult to implement. However, I do not plan to work on them in the > near future. > > Build and regtested on x86-64-linux > OK for the trunk? OK, thanks for the start. Jerry