[Bug middle-end/40194] fortran rules for optimizing
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue May 19 10:20:00 GMT 2009
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-05-19 10:20 -------
Does
SUBROUTINE S(I1,IP)
INTEGER,INTENT(IN) :: I1
INTEGER, POINTER :: IP
END SUBROUTINE S
allow that S stores the pointer to I1 to global memory?
I think that the easiest way to improve Fortran code generation is to _not_
pass INTENT(IN) arguments by reference but by value (at least for scalar
types). Maybe the FE can use DECL_BY_REFERENCE and the middle-end that
to derive non-clobber/escape status.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40194
More information about the Gcc-bugs
mailing list