From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3EA7A387090F; Sun, 24 May 2020 12:01:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EA7A387090F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590321712; bh=sKNMmSKNyZVKXzmfJmrv5Hf4HGS55o68dLqW8dCvN6U=; h=From:To:Subject:Date:From; b=xo0fagNgtk89a4Fz9G6tOnKhz/utLpEogZRJFVk1SIpP3FPMU/IWTCLpiehAyKoes ipnniXLOFTtZyx8rEihrFqp2oXSOESW6qiELJLgFNg7hzpHnX8brdP3vLz4GoTViZ6 8oumj5cNgTdE7+rmR3OOF+mfg51exh7injZyP3ec= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95304] New: Clean up some code for finalization Date: Sun, 24 May 2020 12:01:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 24 May 2020 12:01:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95304 Bug ID: 95304 Summary: Clean up some code for finalization Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tkoenig at gcc dot gnu.org Target Milestone: --- Just looked at the output of=20 gfortran -fdump-fortran-original finalize_28.f90 which has symtree: 'idx2' || symbol: 'idx2'=20=20=20=20=20=20=20=20=20 type spec : (INTEGER 8) attributes: (VARIABLE ARTIFICIAL) symtree: 'ignore' || symbol: 'ignore'=20=20=20=20=20=20=20 type spec : (INTEGER 4) attributes: (VARIABLE ARTIFICIAL) symtree: 'is_contiguous'|| symbol: 'is_contiguous'=20 type spec : (LOGICAL 4) attributes: (VARIABLE ARTIFICIAL) symtree: 'nelem' || symbol: 'nelem' [...] DO __final_coo_graphs_Coo_graph:idx=3D1_8 __convert_i4_i8[[((_F.rank[[((__final_coo_graphs_Coo_graph:array(FULL)))]])= )]] 1_8 ASSIGN __final_coo_graphs_Coo_graph:strides(__final_coo_graphs_Coo_graph:idx) _F.stride[[((__final_coo_graphs_Coo_graph:array(FULL)) (__final_coo_graphs_Coo_graph:idx))]] ASSIGN __final_coo_graphs_Coo_graph:sizes(__final_coo_graphs_Coo_graph:idx) (* __final_coo_graphs_Coo_graph:sizes((- __final_coo_graphs_Coo_graph:idx 1_8)) _F.size[[((__final_coo_graphs_Coo_graph:array(FULL)) (__final_coo_graphs_Coo_graph:idx) (8_8))]]) IF (/=3D __final_coo_graphs_Coo_graph:strides(__final_coo_graphs_Coo_graph:idx) __final_coo_graphs_Coo_graph:sizes((- __final_coo_graphs_Coo_graph:idx 1_8)= )) ASSIGN __final_coo_graphs_Coo_graph:is_contiguous .false. ENDIF END DO We should be able to use the is_contiguous intrinsic and also use variable names which are prefixed with __ so we can not collide with user variables under any circumstances.=