On 08/07/2014 09:50 PM, Bernd Schmidt wrote:
The following patch reworks this area - instead of trying to find a proper pointer type, it just recognizes the case where an integer is promoted to be the base, and performs all calculations in that type rather than sizetype. That also seems to be an additional bugfix over the original change, which could still lose address bits in the index. I've verified that this produces the same assembly for the original testcase on spu-elf with the gcc-4_5-branch, and it solves the problems I was seeing on ptx.
Argh, not quite. It fixes one class of testcases, but also introduces some new failures. New patch tomorrow or so.
Bernd