This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 16 April 2010 01:11, Chris Lattner <clattner@apple.com> wrote: > > Why not go a simple and more obvious route of attaching the attributes to the arguments? ?For example, something like: > > void foo(int __attribute__((const)) *x) > > could designate that the function only reads from X or something? Agreed. Manuel.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |