function attribute const
Tony Finch
dot@dotat.at
Wed Mar 13 12:58:00 GMT 2002
On Wed, Mar 13, 2002 at 05:03:28PM -0300, Alexandre Oliva wrote:
>
> But you also have to make sure the compiler won't move the
> initialization past the call of the const function.
It can't do that if the pointer was originally obtained from a function
that did the allocation and initialization, or if it was passed in as
an argument after being initialized.
So am I right in thinking that the requirements described in the info
file are too strict?
Tony.
More information about the Gcc
mailing list