This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31593] Invariant DO loop variables and subroutines
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2009 22:58:35 -0000
- Subject: [Bug fortran/31593] Invariant DO loop variables and subroutines
- References: <bug-31593-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #26 from tobi at gcc dot gnu dot org 2009-08-14 22:58 -------
(In reply to comment #25)
> (In reply to comment #23)
>
> Actually, you're right. In nested loops, there's no way without copying.
>
If it weren't for the outermost loop it would actually be perfectly legal to
modify 'value' inside the loops. If there were a way of telling the compiler
"this pointer can't escape" this would be really easy to solve.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31593