[PATCH] Avoid useless calls to pure/const functions

Richard Henderson rth@redhat.com
Tue Jun 3 19:19:00 GMT 2003


On Wed, May 28, 2003 at 08:11:04PM -0600, Roger Sayle wrote:
> 	* calls.c (expand_call): Avoid calling pure or const functions
> 	when the result is ignored (or void) and none of the arguments
> 	are volatile.  Move warning diagnostic earlier in function.

Ok.


r~



More information about the Gcc-patches mailing list