This is the mail archive of the gcc-patches@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: [sh PATCH] PR/27717, sh backend lies to reload about index registers


Whether sh really needs that is beyond my understanding. The more I read the patch, the more I hope it doesn't. For example, another way to achieve the same would be to emit the memory access as an UNSPEC.

As in this patch. I am curious whether anybody thinks it's too much of a hack (compared to INDEX_REG_CLASS_FOR_MODE).

FYI, I've tested this patch on x86 cross sh64-unknown-linux-gnu. There is no build problem and no regression.

Joern, since this is a sh patch only, ok to apply to 4.2 only? For 4.3 I'll see if I can get a better solution, or if some register allocator folks find another fix for PR26778.


Paolo


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