]> git.ipfire.org Git - thirdparty/gcc.git/commit
ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the size_lookup[] array.
authorNick Clifton <nickc@redhat.com>
Tue, 25 Jul 2006 15:33:50 +0000 (15:33 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Tue, 25 Jul 2006 15:33:50 +0000 (15:33 +0000)
commit6583cf153de60fde983298105321deb3e5b0b3cd
tree097df08f8c404a8e292b7d34a666becdc2a914d8
parent2daec0f0854b1517fa6a2eb44762dda8cb8000ed
ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the size_lookup[] array.

* ggc-page.c (NUM_SIZE_LOOKUP): New constant - the length of the size_lookup[] array.
  (ggc_alloc_stat): Use NUM_SIZE_LOOKUP.
  (ggc_pch_count_object): Likewise.
  (ggc_pch_alloc_object): Likewise.
  (ggc_pch_write_object): Likewise.
  (init_ggc): Do not attempt to initialize entries in the size_lookup[] array
  for objects whose size is greater than than the length of the array.

From-SVN: r115738
gcc/ChangeLog
gcc/ggc-page.c