* calls.c (expand_call): Avoid calling pure or const functions
commit4a081dddaaee9814b64009f5d4c3387203b6331e
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jun 2003 12:07:52 +0000 (4 12:07 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jun 2003 12:07:52 +0000 (4 12:07 +0000)
tree3db65d6f6c47477a6b251f457addfa72eb727e45
parent15859234b2f84ca715e42a94cc35b82c161d83e4
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67436 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/calls.c