From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 46D173857027; Sun, 19 Jul 2020 11:00:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46D173857027 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595156451; bh=Pgnyg1aUKF9E/utfVAjrYOtCq6cW6IM4peeLN1G6hKs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RLuDdmgLxBLAe2nMe1EAsBNMLZGXRWMy9bijUhPMp3OkEAIV7JwsbJ847ZIDOGrNN YsUDcTciGs4R8lTLSANtVnHNUD+2PBrB0GCb7w2KY8MGBkyjFIkSQowFzB8mNHS3du A2UPQtC82YGkAVOztDetzTrBhd5WXFGpdspX/TjU= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/96018] [9/10/11 Regression] Optimization issue with external HDF5 library Date: Sun, 19 Jul 2020 11:00:51 +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: 10.0 X-Bugzilla-Keywords: patch, 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: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2020 11:00:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96018 --- Comment #16 from CVS Commits --- The master branch has been updated by Thomas K=C3=A0=C2=A4=C2=A5=C3=A0=C2= =A4nig : https://gcc.gnu.org/g:3055d879edb1bc2a3923f92a5e681c8f6774fbc3 commit r11-2215-g3055d879edb1bc2a3923f92a5e681c8f6774fbc3 Author: Thomas Koenig Date: Sun Jul 19 12:23:43 2020 +0200 Fix handling of implicit_pure by checking if non-pure procedures are called. Procedures are marked as implicit_pure if they fulfill the criteria of pure procedures. In this case, a procedure was not marked as not being implicit_pure which called another procedure, which had not yet been marked as not being implicit_impure. Fixed by iterating over all procedures, setting callers of procedures which are non-pure and non-implicit_pure as non-implicit_pure and doing this until no more procedure has been changed. gcc/fortran/ChangeLog: 2020-07-19 Thomas Koenig PR fortran/96018 * frontend-passes.c (gfc_check_externals): Adjust formatting. (implicit_pure_call): New function. (implicit_pure_expr): New function. (gfc_fix_implicit_pure): New function. * gfortran.h (gfc_fix_implicit_pure): New prototype. * parse.c (translate_all_program_units): Call gfc_fix_implicit_pure.=