This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67202] New: Fortran FE should load scalar pass-by-reference intent-in arguments at the beginning of a function
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Aug 2015 09:54:02 +0000
- Subject: [Bug fortran/67202] New: Fortran FE should load scalar pass-by-reference intent-in arguments at the beginning of a function
- Auto-submitted: auto-generated
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