From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9915 invoked by alias); 13 Aug 2015 09:54:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9778 invoked by uid 48); 13 Aug 2015 09:54:03 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67202] New: Fortran FE should load scalar pass-by-reference intent-in arguments at the beginning of a function Date: Thu, 13 Aug 2015 09:54:00 -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: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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 attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg00878.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67202 Bug ID: 67202 Summary: Fortran FE should load scalar pass-by-reference intent-in arguments at the beginning of a function Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Created attachment 36178 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36178&action=edit Test case Hello. PR is follow-up of PR67170, where PRE can't hoist out an argument which is passed by reference and is intent-in. In the situation it would be beneficial to load the argument at the very beginning and transfer all references of the argument to the load. Please take a look at attached test case. Thanks, Martin