GCSE considers read only memory clobbered by function calls.

Richard Henderson rth@redhat.com
Mon May 9 18:27:00 GMT 2005


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~



More information about the Gcc mailing list