This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCSE considers read only memory clobbered by function calls.
- From: Richard Henderson <rth at redhat dot com>
- To: Mostafa Hagog <MUSTAFA at il dot ibm dot com>
- Cc: stevenb at suse dot de, gcc at gcc dot gnu dot org
- Date: Mon, 9 May 2005 09:35:34 -0700
- Subject: Re: GCSE considers read only memory clobbered by function calls.
- References: <OFBAA786E9.115D4B94-ON43256FFC.0047BCC1-43256FFC.00510FD2@il.ibm.com>
On Mon, May 09, 2005 at 05:45:24PM +0300, Mostafa Hagog wrote:
> EXECUTE_IF_SET_IN_BITMAP (blocks_with_calls, 0, bb_index, bi)
> {
> ! if (! MEM_READONLY_P (x))
Looks like you should push this check here:
case MEM:
if (!MEM_READONLY_P (x))
{
...
}
x = XEXP (x, 0);
goto repeat;
r~