Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-12 Thread Thomas Koenig
Hi Jakub, Or if we have some easy way to find out what objects will need local variables with descriptors (those need the non-flexible array member stuff) and others (e.g. dummy arguments etc.) where we could use just the flexible array members. Descriptors are used for passing arguments to

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-12 Thread Jakub Jelinek
On Mon, Feb 12, 2018 at 08:41:56PM +0100, Thomas Koenig wrote: > Am 08.02.2018 um 12:27 schrieb Richard Biener: > > If the effect of the patch is (it doesn't include generated files) that the > > function arguments now have pointers to array descriptor types with > > the flexible array then yes,

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-12 Thread Janne Blomqvist
On Mon, Feb 12, 2018 at 9:41 PM, Thomas Koenig wrote: > Am 08.02.2018 um 12:27 schrieb Richard Biener: >> >> If the effect of the patch is (it doesn't include generated files) that >> the >> function arguments now have pointers to array descriptor types with >> the flexible

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-12 Thread Thomas Koenig
Am 08.02.2018 um 12:27 schrieb Richard Biener: If the effect of the patch is (it doesn't include generated files) that the function arguments now have pointers to array descriptor types with the flexible array then yes, that's what will be needed anyways, no need for any dust to settle here.

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-08 Thread Richard Biener
On Mon, Feb 5, 2018 at 1:09 PM, Janne Blomqvist wrote: > On Sun, Feb 4, 2018 at 9:49 PM, Thomas Koenig wrote: >> Hello world, >> >> in the attached patch, I have used flexible array members for >> using the different descriptor types (following

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-06 Thread Thomas Koenig
Am 06.02.2018 um 09:53 schrieb Janne Blomqvist: /* Make the INTEGER*4 array for passing to date_and_time. */ - gfc_array_i4 *avalues = xmalloc (sizeof (gfc_array_i4)); + gfc_array_i4 *avalues = xmalloc (sizeof (gfc_full_array_i4)); Since date_and_time requires the values array to

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-06 Thread Janne Blomqvist
On Mon, Feb 5, 2018 at 10:53 PM, Thomas Koenig wrote: > Am 05.02.2018 um 13:09 schrieb Janne Blomqvist: >> >> On Sun, Feb 4, 2018 at 9:49 PM, Thomas Koenig >> wrote: >>> >>> Hello world, >>> >>> in the attached patch, I have used flexible array

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-05 Thread Thomas Koenig
Am 05.02.2018 um 13:09 schrieb Janne Blomqvist: On Sun, Feb 4, 2018 at 9:49 PM, Thomas Koenig wrote: Hello world, in the attached patch, I have used flexible array members for using the different descriptor types (following Richi's advice). This does not change the

Re: [patch, libfortran] Use flexible array members for array descriptor

2018-02-05 Thread Janne Blomqvist
On Sun, Feb 4, 2018 at 9:49 PM, Thomas Koenig wrote: > Hello world, > > in the attached patch, I have used flexible array members for > using the different descriptor types (following Richi's advice). > This does not change the binary ABI, but the library code > maches what

[patch, libfortran] Use flexible array members for array descriptor

2018-02-04 Thread Thomas Koenig
Hello world, in the attached patch, I have used flexible array members for using the different descriptor types (following Richi's advice). This does not change the binary ABI, but the library code maches what we are actually doing in the front end. I have not yet given up hope of enabling LTO