Re: [PATCH 09/10] fortran: Support clobbering of variable subreferences [PR88364]

2022-09-20 Thread Harald Anlauf via Fortran
Am 19.09.22 um 22:50 schrieb Mikael Morin: Le 19/09/2022 à 21:46, Harald Anlauf a écrit : Am 18.09.22 um 22:55 schrieb Mikael Morin: Le 18/09/2022 à 20:32, Harald Anlauf a écrit : Assumed shape will be on the easy side, while assumed size likely needs to be excluded for clobbering. Isn’t it

[PATCH, committed] Fortran: error recovery on invalid ARRAY argument to FINDLOC [PR106986]

2022-09-20 Thread Harald Anlauf via Fortran
Dear all, we ICE'd in the simplification of FINDLOC when the passed ARRAY argument had an invalid declaration. The reason was a reference to array->shape which was NULL. Obvious solution: then just don't attempt to simplify. Regtested on x86_64-pc-linux-gnu and pushed to mainline as https://gc

[PATCH, committed] Fortran: NULL pointer dereference in invalid simplification [PR106985]

2022-09-20 Thread Harald Anlauf via Fortran
Dear all, Gerhard found a NULL pointer dereference in a PARAMETER declaration that referenced the same declared parameter. Simple & obvious enough, see attached patch. Regtested on x86_64-pc-linux-gnu, and pushed to mainline: https://gcc.gnu.org/g:8dbb15bc2d019488240c1e69d93121b0347ac092 Thank

Re: [Patch] Fortran: F2018 type(*),dimension(*) with scalars [PR104143]

2022-09-20 Thread Harald Anlauf via Fortran
Am 20.09.22 um 13:51 schrieb Tobias Burnus: In several cases, one just wants to have the address where an object starts without requiring the detour via 'c_loc' and the (locally) required 'target' attribute. In principle,  type(*),dimension(*)  of TS29113 permits this, except that 'dimension(*

Re: [PATCH][pushed] fortran: remove 2 dead links [PR106636]

2022-09-20 Thread Tobias Burnus
Hi Martin, On 20.09.22 14:24, Martin Liška wrote: On 9/20/22 14:17, Tobias Burnus wrote: Instead of removing the links, can we rather replace it by an updated link? [...] Thanks for the archeological work you did. Sure, what about the suggested patch? LGTM. Thanks! Tobias -

Re: [PATCH][pushed] fortran: remove 2 dead links [PR106636]

2022-09-20 Thread Martin Liška
On 9/20/22 14:17, Tobias Burnus wrote: > Hi Martin, > > On 20.09.22 14:02, Martin Liška wrote: >> diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi >> @@ -455,9 +455,7 @@ version 2.6, @uref{https://www.openacc.org/}).  See >>   The Fortran 95 standard specifies in Part 2 (ISO/IEC

Re: [PATCH][pushed] fortran: remove 2 dead links [PR106636]

2022-09-20 Thread Tobias Burnus
Hi Martin, On 20.09.22 14:02, Martin Liška wrote: diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi @@ -455,9 +455,7 @@ version 2.6, @uref{https://www.openacc.org/}). See The Fortran 95 standard specifies in Part 2 (ISO/IEC 1539-2:2000) varying length character strings. Wh

[PATCH][pushed] fortran: remove 2 dead links [PR106636]

2022-09-20 Thread Martin Liška
PR fortran/106636 gcc/fortran/ChangeLog: * gfortran.texi: Remove 2 dead links. --- gcc/fortran/gfortran.texi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi index 59d673bfc03..25410e6088d 100644 --- a/gc

[Patch] Fortran: F2018 type(*),dimension(*) with scalars [PR104143]

2022-09-20 Thread Tobias Burnus
In several cases, one just wants to have the address where an object starts without requiring the detour via 'c_loc' and the (locally) required 'target' attribute. In principle, type(*),dimension(*) of TS29113 permits this, except that 'dimension(*)' only permits arrays and array elements but n

Re: Proxy ping [PATCH] Fortran: Fix function attributes [PR100132]

2022-09-20 Thread Mikael Morin
Hello, Le 19/09/2022 à 22:17, Harald Anlauf via Fortran a écrit : Dear all, the following patch was submitted by Jose but never reviewed: https://gcc.gnu.org/pipermail/fortran/2021-April/055946.html Before, we didn't set function attributes properly when passing polymorphic pointers, which co

Re: [PATCH 09/10] fortran: Support clobbering of variable subreferences [PR88364]

2022-09-20 Thread Mikael Morin
Le 20/09/2022 à 08:54, Thomas Koenig a écrit : On 19.09.22 22:50, Mikael Morin wrote: Le 19/09/2022 à 21:46, Harald Anlauf a écrit : Assumed size (*) is just a contiguous hunk of memory of possibly unknown size, which can be zero.  So you couldn't set a clobber for the a(1) actual argument.