[tree-ssa] Removing useless/redundant "const" calls
Michael Matz
matz@suse.de
Thu Jun 12 18:41:00 GMT 2003
Hi,
On Fri, 13 Jun 2003, Fergus Henderson wrote:
> There's no conflict, so long as the *programmer* declares that these
> functions are pure. In such cases, the explicit declaration gives the
> compiler permission to make optimizations which it would not otherwise
> be allowed to do.
>
> If however we are talking about having the compiler *infer* when
> functions are pure, then the compiler must be more conservative, if it
> is to conform to the C standard.
I completely agree.
Ciao,
Michael.
More information about the Gcc-patches
mailing list