[Bug c/31893] Please provide an "inout" attribute for function parameters.

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 16 23:26:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-03-16 23:22:35 UTC ---
(In reply to comment #5)
> There is no support for this in the middle-end anyway. Not even for Fortran.

And with GCC 4.7.0, there is, and FORTRAN is using it. See PR43665 and 

http://gcc.gnu.org/ml/gcc-patches/2010-04/msg00895.html

but there is no external interface exposing this functionality in C/C++. That
thread includes some suggestions. If you are still interested, you could try to
submit a patch implementing some of the suggestions.



More information about the Gcc-bugs mailing list