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

2015-06-10 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893 --- Comment #9 from Daniel Fruzynski --- My bad, now I see my error. What do you think about adding this new attribute to mark function arguments as out only? I think it would allow to eliminate more dead or unnecessary code (e.g. when value is

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

2015-06-10 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893 --- Comment #8 from Jonathan Wakely --- (In reply to Daniel Fruzynski from comment #7) > void __attribute__((const)) func(int* i) > { > *i = 44; > } You get a warning because you marked this function const, which tells the compiler it won't

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

2015-06-10 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893 Daniel Fruzynski changed: What|Removed |Added CC||bugzilla@poradnik-webmaster

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

2013-08-28 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893 Bug 31893 depends on bug 31094, which changed state. Bug 31094 Summary: Support annotating function parameters as read-only and/or non-escaping http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31094 What|Removed |Ad

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

2012-03-16 Thread manu at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31893 Manuel López-Ibáñez changed: What|Removed |Added Status|WAITING |NEW --- Comment #6 from Manuel Lópe

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

2008-08-18 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2008-08-18 17:14 --- There is no support for this in the middle-end anyway. Not even for Fortran. -- manu at gcc dot gnu dot org changed: What|Removed |Added --

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

2008-08-18 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2008-08-18 16:50 --- This would need to be a GCC extension and those need some high-level approval, so still unconfirmed, however I am marking as waiting until a decision is taken. You should seek opinions/support in the gcc mailing list.

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

2007-05-11 Thread madcoder at debian dot org
--- Comment #3 from madcoder at debian dot org 2007-05-11 09:32 --- Subject: Re: Please provide an "inout" attribute for function parameters. On Thu, May 10, 2007 at 10:00:51PM -, pinskia at gcc dot gnu dot org wrote: > --- Comment #2 from pinskia at gcc dot gnu dot org 2007-0

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

2007-05-10 Thread pinskia 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 i

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

2007-05-10 Thread madcoder at debian dot org
--- Comment #1 from madcoder at debian dot org 2007-05-10 11:12 --- 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. Here is the testcase: =