From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31425 invoked by alias); 23 Feb 2007 22:26:16 -0000 Received: (qmail 31406 invoked by uid 22791); 23 Feb 2007 22:26:14 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.171) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 Feb 2007 22:26:09 +0000 Received: by ug-out-1314.google.com with SMTP id s2so455097uge for ; Fri, 23 Feb 2007 14:26:06 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=taq/LPUJV+6IkRhAum4t/kzYL7I2XITegZkYCjrRC75q2iSSTcECJoEq0EkNy9YNQLyyKYZiDOS9zvphq1PdQqYuDfRpeum+TbsiOxD8/KOrSUyjvZoJ3gk1Cxn5OHcl9cu7MKXnV6JzgccTmJp5dL7eCu/YqxHH0vxUCQcxBYw= Received: by 10.67.119.9 with SMTP id w9mr2937470ugm.1172269562411; Fri, 23 Feb 2007 14:26:02 -0800 (PST) Received: from e177096167.adsl.alicedsl.de ( [85.177.96.167]) by mx.google.com with ESMTP id q40sm2512733ugc.2007.02.23.14.26.01; Fri, 23 Feb 2007 14:26:02 -0800 (PST) From: Daniel Franke To: Tobias Burnus Subject: Re: [patch, fortran] fixes for the EXIT intrinsic function (PR30933) Date: Sat, 24 Feb 2007 09:26:00 -0000 User-Agent: KMail/1.9.6 Cc: gcc-patches , "'fortran@gcc.gnu.org'" References: <45DF2C6A.6050202@net-b.de> In-Reply-To: <45DF2C6A.6050202@net-b.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702232325.56280.franke.daniel@gmail.com> X-IsSubscribed: yes 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: 2007-02/txt/msg01930.txt.bz2 On Friday 23 February 2007 19:03:22 Tobias Burnus wrote: > b) [The patch] allows any integer kind for the exit subroutine. This is > in the spirit of Fortran 2003 which also allows any kind for most of the > intrinsic procedures. Status quo is to give a link-time error that > exit_i1 etc. does not exist. > > For (b) there are several options: > > i. Add i1, i2, and i16 versions to libgfortran > ii. Convert kind > 8 to integer(8) and kind < 4 to integer(4) > iii. As POSIX defines "exit(int)" and sizeof(int) is on most systems "4" > convert everything to integer(4) > iv. Convert everything to the default integer, i.e. integer(4) or > integer(8) depending whether -fdefault-integer-8 is used. > > I have chosen i > FLUSH implements (iii), see also PR30941.