This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31893] Please provide an "inout" attribute for function parameters.
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Mar 2012 23:22:35 +0000
- Subject: [Bug c/31893] Please provide an "inout" attribute for function parameters.
- Auto-submitted: auto-generated
- References: <bug-31893-4@http.gcc.gnu.org/bugzilla/>
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.