This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: function attribute const
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.