This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, fortran] fixes for the EXIT intrinsic function (PR30933)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]