On 10/05/2016 06:15 PM, David Malcolm wrote:
- /* Make sure regno_pointer_align, and regno_reg_rtx are large - enough to have an element for this pseudo reg number. */ + int cur_size = crtl->emit.regno_pointer_align_length; + if (reg_rtx_no == cur_size) + crtl->emit.ensure_regno_capacity (cur_size * 2);
Patch looks ok in principle, but maybe this manipulation of the size should be part of the new function as well - i.e. don't pass a new_size to it, make it check reg_rtx_no itself.
Bernd