This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: comments do not match code.
- From: Ian Lance Taylor <iant at google dot com>
- To: Kenneth Zadeck <zadeck at naturalbridge dot com>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Mon, 07 Apr 2008 09:37:37 -0700
- Subject: Re: comments do not match code.
- References: <47F97510.9040000@naturalbridge.com>
Kenneth Zadeck <zadeck@naturalbridge.com> writes:
> in reorg.c:3155 there is the following code:
>
> /* If we reach a CALL which is not calling a const function
> or the callee pops the arguments, then give up. */
> if (CALL_P (our_prev)
> && (! CONST_OR_PURE_CALL_P (our_prev)
> || GET_CODE (pat) != SET || GET_CODE (SET_SRC (pat)) != CALL))
> break;
>
>
>
> The comment talks about const calls, but the code breaks if the call
> is either a pure or const call.
> Which is correct?
The code. It's OK to delete a pure call.
Ian