Introduce emit_status::ensure_regno_capacity
commitcd76903765d7085a0b792fae5140a3c977dc9bee
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2016 17:29:41 +0000 (8 17:29 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Dec 2016 17:29:41 +0000 (8 17:29 +0000)
treea23200b834f738cfc61200508915eb2c2d0f15cf
parent4cee89215e8ae82ebd9a8a7f3848c4c2d14e9d49
Introduce emit_status::ensure_regno_capacity

gcc/ChangeLog:
* emit-rtl.c (gen_reg_rtx): Move regno_pointer_align and
regno_reg_rtx resizing logic to...
(emit_status::ensure_regno_capacity): ...this new method,
and ensure that the buffers are large enough.
(init_emit): Allocate regno_reg_rtx using ggc_cleared_vec_alloc
rather than ggc_vec_alloc.
* function.h (emit_status::ensure_regno_capacity): New method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243447 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/emit-rtl.c
gcc/function.h