Re: [patch, fortran] Make ABI ready for BACK argument of MINLOC and MAXLOC

2018-01-09 Thread Janne Blomqvist
On Mon, Jan 8, 2018 at 11:48 PM, Thomas Koenig wrote: > Hi Janne, > >> If I understand it correctly, in the library the back argument is >> always a LOGICAL(kind=4). But in the frontend, the back argument is >> coerced to gfc_default_logical_kind. So this doesn't work if one uses >> the -fdefault-

Re: [patch, fortran] Make ABI ready for BACK argument of MINLOC and MAXLOC

2018-01-08 Thread Thomas Koenig
Hi Janne, If I understand it correctly, in the library the back argument is always a LOGICAL(kind=4). But in the frontend, the back argument is coerced to gfc_default_logical_kind. So this doesn't work if one uses the -fdefault-integer-8 option, because then gfc_default_logical_kind will be 8.

Re: [patch, fortran] Make ABI ready for BACK argument of MINLOC and MAXLOC

2018-01-08 Thread Janne Blomqvist
On Mon, Jan 8, 2018 at 1:23 AM, Thomas Koenig wrote: > Hello world, > > the attached patch is a step towards the implementaion of the BACK > argument for the MINLOC and MAXLOC intrinsics, a part of F2008. > This readies the ABI for a later date. Makes sense. > In order to avoid combinatrorial ex