diff options
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 724244b..7df9f23 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -4913,6 +4913,7 @@ void init_emit () { struct function *f = cfun; + int i; f->emit = (struct emit_status *) ggc_alloc (sizeof (struct emit_status)); first_insn = NULL; @@ -4942,9 +4943,14 @@ init_emit () = (tree *) ggc_alloc_cleared (f->emit->regno_pointer_align_length * sizeof (tree)); + /* Put copies of all the hard registers into regno_reg_rtx. */ + for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) + regno_reg_rtx[i] = gen_raw_REG (reg_raw_mode[i], i); + /* Put copies of all the virtual register rtx into regno_reg_rtx. */ init_virtual_regs (f->emit); + /* Indicate that the virtual registers and stack locations are all pointers. */ REG_POINTER (stack_pointer_rtx) = 1; |