From ddb0ae00a2fefc266ad0cd0fa12de4368c23e97a Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Fri, 14 Feb 2003 05:42:30 +0000 Subject: emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx. * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx. * function.h (struct emit_status): Length of regno_pointer_align and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no, not regno_pointer_align_length (i.e. length actually used, not length as allocated) * config/i386/i386.c (struct stack_local_entry): New. (struct machine_function): Replace huge array with alist. (assign_386_stack_local): Change to match. From-SVN: r62891 --- gcc/emit-rtl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/emit-rtl.c') diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 396579e6..aefa874 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -5350,8 +5350,7 @@ init_emit () * sizeof (unsigned char)); regno_reg_rtx - = (rtx *) ggc_alloc_cleared (f->emit->regno_pointer_align_length - * sizeof (rtx)); + = (rtx *) ggc_alloc (f->emit->regno_pointer_align_length * sizeof (rtx)); /* Put copies of all the hard registers into regno_reg_rtx. */ memcpy (regno_reg_rtx, -- cgit v1.1