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: [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
:00:00 2001 From: Harald Anlauf Date: Sun, 22 Dec 2024 21:34:19 +0100 Subject: [PATCH] Fortran: fix front-end GMP memleaks gcc/fortran/ChangeLog: * check.cc (gfc_check_random_seed): Clear gmp variables returned by gfc_array_size. * expr.cc (gfc_check_pointer_assign): Likewise. --- gcc/fortran