]> git.ipfire.org Git - thirdparty/gcc.git/commit
calls.c (expand_call): Avoid calling pure or const functions when the result is ignor...
authorRoger Sayle <sayle@gcc.gnu.org>
Wed, 4 Jun 2003 12:07:52 +0000 (12:07 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Wed, 4 Jun 2003 12:07:52 +0000 (12:07 +0000)
commit8c6a82695b85f8ed74cdc67f2cf74c5a62d0d91d
tree3db65d6f6c47477a6b251f457addfa72eb727e45
parente2d8bb2946c433461b613996567250b72b87cd24
calls.c (expand_call): Avoid calling pure or const functions when the result is ignored (or void) and...

* 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.

From-SVN: r67436
gcc/ChangeLog
gcc/calls.c