Re: [PATCH] fortran: implement conditional expression for fortran 2023

2025-09-20 Thread Yuao Ma
Hi Tobias, On Mon, Sep 8, 2025 at 10:54 PM Tobias Burnus wrote: > * * * > > >>> + if (true_expr->rank != false_expr->rank) > >>> +{ > >>> + gfc_error ("true_expr at %L and false_expr at %L in conditional " > >>> +"expression must have the same rank", > >>> +

relocatable binary library for gfortran subroutines

2025-09-20 Thread George Rinker
Can anyone tell me how to create and maintain a relocatable binary library for gfortran subroutines? I'd like to create portable executables that aren't 99% dead code without having to pick everything out with a text editor. - George Rinker

[patch][wwwdocs] gcc-16/changes.html: Update Fortran section

2025-09-20 Thread Tobias Burnus
Hi all, attached is a patch to update the Fortran section of the GCC 16 release notes. I am sure that I missed some fine print and the most important changes are also some bug fixes, which are difficult to list. → https://gcc.gnu.org/gcc-16/changes.html Comments? Tobias PS: I am aware of addit

Re: [PATCH] Fortran: fix issues with rank-2 deferred-length character arrays [PR108581]

2025-09-20 Thread Jerry D
On 9/20/25 1:34 PM, Harald Anlauf wrote: Dear All, the attached patch is the result of several long debugging sessions trying to find out why deferred-length character arrays were mistreated. It turned out that when deriving the dataptr offset in the array descriptor, for fixed length the elemen

[PATCH] Fortran: fix issues with rank-2 deferred-length character arrays [PR108581]

2025-09-20 Thread Harald Anlauf
Dear All, the attached patch is the result of several long debugging sessions trying to find out why deferred-length character arrays were mistreated. It turned out that when deriving the dataptr offset in the array descriptor, for fixed length the element size takes into account the known string

Re: [PATCH] Fortran: make STAT/LSTAT/FSTAT intrinsics generic [PR82480]

2025-09-20 Thread Jerry D
On 9/8/25 12:59 PM, Harald Anlauf wrote: Dear all, this is the second (and hopefully final) patch to fix this PR for good. This makes the GNU intrinsics STAT/LSTAT/FSTAT almost generic, with few restrictions: - for the VALUES argument we will support only kinds 4 and 8.   This allows to stay w

[Patch, fortran] PR83746 - Errors using the max intrinsic in a PDT length parameter expression for a function result

2025-09-20 Thread Paul Richard Thomas
This one was painfully obvious once I looked in the right place :-( Pushed to mainline as r16-3989. Paul Fortran: Intrinsic functions in PDT specification exprs. [PR83746] 2025-09-19 Paul Thomas gcc/fortran PR fortran/83746 * trans-array.cc (structure_alloc_comps): Add the pre and post bloc

Re: How to debug the forest?

2025-09-20 Thread Thomas Koenig
Hi Harald, I have some ideas for selected cases where I want to pretty-print the tree. Array descriptors within gfortran are one place where I want to see what is produced under which condition, and why we sometimes fail to calculate the correct offset e.g. when it comes to deferred length. T