[patch] Fix insn allocation size in ggc-page.c
Dan Nicolaescu
dann@ics.uci.edu
Tue Jul 8 21:28:00 GMT 2003
The ggc-page.c bucket for allocating insns is incorrect, insns have 9
slots, not 10.
Currently ggc-page.c allocates insns (which are 40 bytes) in 44 byte
buckets on x86, which is wasteful.
Also REGs have 3 slots, not 2.
If the patch is OK, please apply it, I don't have write permissions.
2003-07-08 Dan Nicolaescu <dann@ics.uci.edu>
* ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
don't have 2.
Index: ggc-page.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ggc-page.c,v
retrieving revision 1.71
diff -c -3 -p -c -r1.71 ggc-page.c
*** ggc-page.c 1 Jul 2003 12:17:54 -0000 1.71
--- ggc-page.c 8 Jul 2003 21:04:34 -0000
*************** static const size_t extra_order_size_tab
*** 184,191 ****
sizeof (struct tree_decl),
sizeof (struct tree_list),
TREE_EXP_SIZE (2),
! RTL_SIZE (2), /* REG, MEM, PLUS, etc. */
! RTL_SIZE (10), /* INSN, CALL_INSN, JUMP_INSN */
};
/* The total number of orders. */
--- 184,191 ----
sizeof (struct tree_decl),
sizeof (struct tree_list),
TREE_EXP_SIZE (2),
! RTL_SIZE (2), /* MEM, PLUS, etc. */
! RTL_SIZE (9), /* INSN, CALL_INSN, JUMP_INSN */
};
/* The total number of orders. */
More information about the Gcc-patches
mailing list