aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@cygnus.com>1999-11-11 19:43:02 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>1999-11-11 14:43:02 -0500
commite55b279b6d572d32b0359dfe203a490a2cb9cf7f (patch)
tree41b2558271c45810c226e7af8b78d3da96fb2cea /gcc
parentb35926b9c57680220b7986dde558af26e6bd5832 (diff)
downloadgcc-e55b279b6d572d32b0359dfe203a490a2cb9cf7f.zip
gcc-e55b279b6d572d32b0359dfe203a490a2cb9cf7f.tar.gz
gcc-e55b279b6d572d32b0359dfe203a490a2cb9cf7f.tar.bz2
init.c (init_init_processing): Header information for arrays allocated via `new' should have the same...
* gcc/cp/init.c (init_init_processing): Header information for arrays allocated via `new' should have the same alignment used by malloc. From-SVN: r30491
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cp/init.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index acf4ae3..4cedaf3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Thu Nov 11 12:42:11 MST 1999 Diego Novillo <dnovillo@cygnus.com>
+
+ * gcc/cp/init.c (init_init_processing): Header information for
+ arrays allocated via `new' should have the same alignment used by
+ malloc.
+
1999-11-11 Bruce Korb <autogen@linuxbox.com>
* fixinc/fixincl.c: Added verbose levels for status messages
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 07c45f4..c44926d 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -66,8 +66,9 @@ void init_init_processing ()
BI_header_type = make_lang_type (RECORD_TYPE);
nelts_identifier = get_identifier ("nelts");
fields[0] = build_lang_decl (FIELD_DECL, nelts_identifier, sizetype);
+ TYPE_ALIGN (BI_header_type) = BIGGEST_ALIGNMENT;
finish_builtin_type (BI_header_type, "__new_cookie", fields,
- 0, double_type_node);
+ 0, BI_header_type);
BI_header_size = size_in_bytes (BI_header_type);
ggc_add_tree_root (&BI_header_type, 1);