From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6269B3857C55; Mon, 17 Jul 2023 12:16:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6269B3857C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689596204; bh=CsUWdcfoGxMaP/gmpAfeJk9oAo1Y+yTwNSh+9zTYWvc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DrrHdtHebr+ywXLliQWaf9zubavkBfzMx7PZBEg6R8Y6wdCNHwRT9PGcqJ81UCooA Znu2ePctWYGYKy66BwSbPGI7c9E4TLbL9drzLLGgaJ+nYh+VQX3oquZ1I2NSkR2pmI jtDqLcq8xE9hYQqzDqaFAGpiy2u7+41hAYOTAlH4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/110618] Dependency between arguments when one is allocatable array whose dummy is intent(out) Date: Mon, 17 Jul 2023 12:16:43 +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: 11.4.1 X-Bugzilla-Keywords: wrong-code 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=3D110618 --- Comment #3 from CVS Commits --- The master branch has been updated by Mikael Morin : https://gcc.gnu.org/g:1a46400e5ac0f21eead74b10752f69ebc7a8be27 commit r14-2579-g1a46400e5ac0f21eead74b10752f69ebc7a8be27 Author: Mikael Morin Date: Mon Jul 17 14:14:18 2023 +0200 fortran: Use pre-evaluated class container if available [PR110618] Add the possibility to provide a pre-evaluated class container argument to gfc_add_finalizer to avoid repeatedly evaluating data reference expressions in the generated code. PR fortran/110618 gcc/fortran/ChangeLog: * trans.h (gfc_add_finalizer_call): Add class container argumen= t. * trans.cc (gfc_add_finalizer_call): Ditto. Pass down new argument to get_final_proc_ref, get_elem_size, get_var_desc, and get_vptr. (get_elem_size): Add class container argument. Use provided class container if it's available. (get_var_descr): Same. (get_vptr): Same. (get_final_proc_ref): Same. Add boolean telling the class container argument is used. Set it. Don't try to use final_wrapper if class container argument was used.=