From patchwork Thu Jun 10 20:00:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FX Coudert X-Patchwork-Id: 55247 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 253861007DC for ; Fri, 11 Jun 2010 06:01:10 +1000 (EST) Received: (qmail 30757 invoked by alias); 10 Jun 2010 20:01:08 -0000 Received: (qmail 30588 invoked by uid 22791); 10 Jun 2010 20:01:08 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 10 Jun 2010 20:01:03 +0000 Received: by wyi11 with SMTP id 11so256215wyi.20 for ; Thu, 10 Jun 2010 13:01:00 -0700 (PDT) Received: by 10.227.135.195 with SMTP id o3mr755735wbt.120.1276200060353; Thu, 10 Jun 2010 13:01:00 -0700 (PDT) Received: from [192.168.0.5] (chufi.coudert.name [88.162.139.106]) by mx.google.com with ESMTPS id t15sm2510584wbc.5.2010.06.10.13.00.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Jun 2010 13:00:59 -0700 (PDT) Subject: Re: [fortran, doc, patch] Document that Cray pointers cannot be function results Mime-Version: 1.0 (Apple Message framework v1078) From: FX In-Reply-To: <20100610195747.GA20539@troutmask.apl.washington.edu> Date: Thu, 10 Jun 2010 22:00:55 +0200 Cc: Fortran List , gcc-patches@gcc.gnu.org Message-Id: <27E442CA-BD61-4814-B0E0-8ADF5005DD33@gmail.com> References: <42F5B4B3-E9E3-489E-9D0C-DE244FF35FA8@gmail.com> <20100610195747.GA20539@troutmask.apl.washington.edu> To: Steve Kargl 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 > IMHO, as long as "make info html pdf" > completes without error go ahead an commit > your patches. The gfortran manual can always > use improvements. OK, I guess people can then later on expand it if they find better wording. So, here's what I committed (sorry for the wrong patch): Index: gfortran.texi =================================================================== --- gfortran.texi (revision 160470) +++ gfortran.texi (working copy) @@ -1515,10 +1515,10 @@ to Cray pointers and pointees. Pointees @code{ALLOCATABLE}, @code{INTENT}, @code{OPTIONAL}, @code{DUMMY}, @code{TARGET}, @code{INTRINSIC}, or @code{POINTER} attributes. Pointers may not have the @code{DIMENSION}, @code{POINTER}, @code{TARGET}, -@code{ALLOCATABLE}, @code{EXTERNAL}, or @code{INTRINSIC} attributes. -Pointees may not occur in more than one pointer statement. A pointee -cannot be a pointer. Pointees cannot occur in equivalence, common, or -data statements. +@code{ALLOCATABLE}, @code{EXTERNAL}, or @code{INTRINSIC} attributes, nor +may they be function results. Pointees may not occur in more than one +pointer statement. A pointee cannot be a pointer. Pointees cannot occur +in equivalence, common, or data statements. A Cray pointer may also point to a function or a subroutine. For example, the following excerpt is valid: