------- Comment #1 from bigotp at acm dot org 2010-08-09 11:57 ------- Created an attachment (id=21441) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21441&action=view) fixes for assumption that readonly means constant
The problem is caused by the same sort of test as was fixed in a different situation in #35729. In the attached patch, it is the change to rtanal.c:rtx_varies_p that fixes the problem. The remaining changes are plausible, but I don't know whether they're necessary. There are additional uses of MEM_READONLY_P that are also questionable, that I didn't get around to trying. I suggest a thorough review by somebody who, unlike me, knows GCC internals. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45235