diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-12-08 17:29:41 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-12-08 17:29:41 +0000 |
commit | f44986d7f5ca9bf64bf127c3ad0bbfc3e1a455b5 (patch) | |
tree | a23200b834f738cfc61200508915eb2c2d0f15cf /gcc/function.h | |
parent | 453060a9062959ceb1522b8b99adeb01b2a3f7b7 (diff) | |
download | gcc-f44986d7f5ca9bf64bf127c3ad0bbfc3e1a455b5.zip gcc-f44986d7f5ca9bf64bf127c3ad0bbfc3e1a455b5.tar.gz gcc-f44986d7f5ca9bf64bf127c3ad0bbfc3e1a455b5.tar.bz2 |
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
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h index 74bd6ab..a35c411 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -34,6 +34,8 @@ struct GTY(()) sequence_stack { }; struct GTY(()) emit_status { + void ensure_regno_capacity (); + /* This is reset to LAST_VIRTUAL_REGISTER + 1 at the start of each function. After rtl generation, it is 1 plus the largest register number used. */ int x_reg_rtx_no; |