On 23 January 2015 at 13:46, Andrew Stubbs <a...@codesourcery.com> wrote: > How does reload ensure that an SImode value (re)loaded into an FP register > has a valid stack index?
You could use CANNOT_CHANGE_MODE_CLASS, or request secondary reload. For the latter, you can look at the memory/pseudo to decide if the address requires a secondary reload for your register (classs). Although we had a few bugs previously where reload wouldn't re-calculate frame addresses when something relevant changed, so you might have to backport some fixes when working with an old compiler.