This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, fortran] fixes for the EXIT intrinsic function (PR30933)
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Fri, 23 Feb 2007 23:25:55 +0100
- Subject: Re: [patch, fortran] fixes for the EXIT intrinsic function (PR30933)
- 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=
- References: <45DF2C6A.6050202@net-b.de>
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.