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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2007 22:00:53 -0000
- Subject: [Bug c/31893] Please provide an "inout" attribute for function parameters.
- References: <bug-31893-13675@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-05-10 23:00 -------
What are you doing, writting Fortran code in C? :) (really I am serious about
this one too)
> It seems that even if the argument is declared const foo_t * gcc assumes the
> function will initialize the data, which is rather ... erm... strange.
Why do you think it is strange? you can remove the const part in do_bar
anyways.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893