diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-05 18:48:12 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-05 18:48:12 +0000 |
| commit | 53e12f0affee8adfe8b55ba12d719fbfcbe44e98 (patch) | |
| tree | 1a639ad9f2d39cf4192f9282ef42b86f4fc3a2f6 | |
| parent | d30e4d0464cae3e2ef4ca79006784aec74d2a9e5 (diff) | |
| download | ppe42-gcc-53e12f0affee8adfe8b55ba12d719fbfcbe44e98.tar.gz ppe42-gcc-53e12f0affee8adfe8b55ba12d719fbfcbe44e98.zip | |
* ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38717 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/ggc-page.c | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 43c35e114a1..3a5979d1073 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-01-05 Mark Mitchell <mark@codesourcery.com> + + * ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now. + 2001-01-05 Joseph S. Myers <jsm28@cam.ac.uk> * builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG): diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index e4bf283498e..abe88d7d57d 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -140,12 +140,23 @@ Boston, MA 02111-1307, USA. */ /* The size of an object on a page of the indicated ORDER. */ #define OBJECT_SIZE(ORDER) object_size_table[ORDER] +#ifdef NO_ALIGNMENT_PROBLEM + /* The number of extra orders, not corresponding to power-of-two sized objects. */ #define NUM_EXTRA_ORDERS \ (sizeof (extra_order_size_table) / sizeof (extra_order_size_table[0])) +#else /* !defined(NO_ALIGNMENT_PROBLEM) */ + +/* For now, we can't use this code because we don't ensure that the + objects returned are appropriately aligned. The problem is that + some tree_list sized things, for example, use */ +#define NUM_EXTRA_ORDERS 0 + +#endif /* !defined(NO_ALIGNMENT_PROBLEM) */ + /* The Ith entry is the maximum size of an object to be stored in the Ith extra order. Adding a new entry to this array is the *only* thing you need to do to add a new special allocation size. */ |

