From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DEF053858017; Fri, 15 Sep 2023 11:43:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEF053858017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694778235; bh=ihQTHh8eZ+ShsoLyAFsWC3lsJ6q6fikvrrp5Vakt2vw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=crztT0TwVtkOY4sO9i77R5qM6q/0V1LL/YrtBC+gsAywKvBWzMq+MdFMYvbmj65b0 FeToNv0j08MN5VVdGGf3ed2yG7xg6wMwo3dpTJE0LiuSlQrIyAgiyBPpjbiWaWtxbb L43i2xuXT03ZM9vYWMkkTSUKnb5efzQabkI3F4DU= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/108957] Fortran FE memleak with interfaces Date: Fri, 15 Sep 2023 11:43:55 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mikael at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108957 --- Comment #6 from CVS Commits --- The master branch has been updated by Mikael Morin : https://gcc.gnu.org/g:e6dba708c8627080f4ca776590a191683b38336c commit r14-4021-ge6dba708c8627080f4ca776590a191683b38336c Author: Mikael Morin Date: Fri Sep 15 13:40:08 2023 +0200 fortran: Remove reference count update [PR108957] Remove one reference count incrementation following the assignment of a symbol pointer to a local variable. Most symbol pointers are "weak" pointer and don't need any reference count update when they are assigned, and i= t is especially the case of local variables. This fixes a memory leak with the testcase from the PR (not included). PR fortran/108957 gcc/fortran/ChangeLog: * gfortran.h (gfc_symbol): Add comment documenting reference counting. * parse.cc (parse_interface): Remove reference count incrementation.=