[Patch, fortran] PR116254/118059 -[15 Regression] Bugs triggered by class_transformational_1/2.f90

2024-12-22 Thread Paul Richard Thomas
Hi All, These bugs were tricky to find because neither were detected by regression testing on my platform. PR116254: This bug was sporadic even where the regression was detected. Richard Sandiford found "Conditional jump or move depends on uninitialised value" errors in the library, triggered by

Re: [PATCH] Fortran: fix front-end GMP memleaks

2024-12-22 Thread Harald Anlauf
Am 22.12.24 um 22:36 schrieb rep.dot@gmail.com: On 22 December 2024 21:50:41 CET, Harald Anlauf wrote: Dear all, please find attached fixes for GMP memleaks in the gfortran frontend found when running f951 under valgrind. One of them surfaced when looking at a testcases that invoved point

Re: [Fortran, Patch, PR117643] Implement F_C_STRING()

2024-12-22 Thread Harald Anlauf
Hi Steve, Am 18.12.24 um 22:37 schrieb Steve Kargl: So, it seems that this section of the patch + gfc_init_se (&asis_se, se); + gfc_conv_expr (&asis_se, asis); + gfc_add_block_to_block (&se->pre, &asis_se.pre); + tmp = fold_build3_loc (input_location, COND_EXPR,

Re: [PATCH] Fortran: fix front-end GMP memleaks

2024-12-22 Thread rep . dot . nop
On 22 December 2024 21:50:41 CET, Harald Anlauf wrote: >Dear all, > >please find attached fixes for GMP memleaks in the gfortran frontend >found when running f951 under valgrind. One of them surfaced when >looking at a testcases that invoved pointer rank remapping. After a >successful gfc_array_

[PATCH] Fortran: fix front-end GMP memleaks

2024-12-22 Thread Harald Anlauf
Dear all, please find attached fixes for GMP memleaks in the gfortran frontend found when running f951 under valgrind. One of them surfaced when looking at a testcases that invoved pointer rank remapping. After a successful gfc_array_size we need to clear the size returned as a gmp variable. Fu

Re: [2nd PING, Fortran, Patch, PR107635, Part 1] Rework handling of allocatable components in derived type coarrays.

2024-12-22 Thread Andre Vehreschild
Hi Jerry, thanks for taking a look. Committed as gcc-15-6415-g586477d67bf. Thanks again, Andre On Sat, 21 Dec 2024 15:27:52 -0800 Jerry D wrote: > On 12/20/24 9:09 AM, Andre Vehreschild wrote: > > Thank you very much Jerry. > > > > The delta between the two patches is really minor. In