This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with reload bug, please


On 23 January 2015 at 13:46, Andrew Stubbs <ams@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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]