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]

Re: [tree-ssa] Removing useless/redundant "const" calls


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]