------- Comment #13 from kkojima at gcc dot gnu dot org 2008-07-17 02:08 ------- > Try changing the "reloaded != 1" condition in find_reloads_subreg_address > to "reloaded == 0" (as a replacement for my m32c patch, and probably for > the SH patch as well). I hope that should avoid these problems in the > cases where LEGITIMIZE_RELOAD_ADDRESS does something like this, and I've > verified the original ARM testcase that motivated my reload change still > works with that change.
This works fine on SH. With this and backing out the workaround in GO_IF_LEGITIMATE_ADDRESS, sh4-unknown-linux-gnu cross x86 is built successfully and the result of regtest looks very clean. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36827