This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR53908
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Cc: rsandifo at nildram dot co dot uk, bernds at codesourcery dot com, gcc-patches at gcc dot gnu dot org, hp at bitrange dot com
- Date: Fri, 13 Jul 2012 09:21:24 +0200
- Subject: Re: Fix PR53908
- References: <87d3407ppd.fsf@talisman.home> <201207130647.q6D6lgl2016609@ignucius.se.axis.com>
On Fri, Jul 13, 2012 at 8:47 AM, Hans-Peter Nilsson
<hans-peter.nilsson@axis.com> wrote:
>> From: Richard Sandiford <rsandifo@nildram.co.uk>
>> Date: Thu, 12 Jul 2012 21:18:54 +0200
>
>> if (CALL_P (insn))
>> {
>> if (RTL_CONST_OR_PURE_CALL_P (insn))
>> /* Pure functions can read from memory. Const functions can
>> read from arguments that the ABI has forced onto the stack.
>> Neither sort of read can be volatile. */
>> memrefs_in_across |= MEMREF_NORMAL;
>> else
>> {
>> memrefs_in_across |= MEMREF_VOLATILE;
>> mem_sets_in_across |= MEMREF_VOLATILE;
>> }
>> }
>>
>> OK with that change if you agree.
>
> (Steven or Bernd, please ACK/NAK, for quick resolution.)
I can't ACK, but I think Richard S.'s fix is correct.
Ciao!
Steven