Introduce emit_status::ensure_regno_capacity
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 8 Dec 2016 17:29:41 +0000 (17:29 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 8 Dec 2016 17:29:41 +0000 (17:29 +0000)
commitf44986d7f5ca9bf64bf127c3ad0bbfc3e1a455b5
treea23200b834f738cfc61200508915eb2c2d0f15cf
parent453060a9062959ceb1522b8b99adeb01b2a3f7b7
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.

From-SVN: r243447
gcc/ChangeLog
gcc/emit-rtl.c
gcc/function.h