> I'm not sure if this is the same problem, but didn't I suggest in > the past to fix this up during expansion? That is, if we end up > with a POINTER_PLUS_EXPR with different mode size pointer and offset > promote (or demote) the offset argument to pointer size properly? > > What happened to these patch snippets I sent you? Would they fix > this issue?
I don't remember every patch you sent, but I"ve been careful to test everything you've offered and reported it's effects. If you can recall which patch it was, I'll test it again. I suspect that promoting a short to a pointer won't work right anyway, as it means that pointers will always have the upper 8 bits masked off. The root of the problem is using HImode integers to store PSImode pointers.