Commit aafc9fd6 by Diego Novillo Committed by Diego Novillo

Undo patch from Nov/11/99 to init.c regarding misalignment of

cookie header for arrays of objects.

From-SVN: r30505
parent 2848ad0f
Fri Nov 12 10:42:02 MST 1999 Diego Novillo <dnovillo@cygnus.com>
* init.c (init_init_processing): Undo patch from Nov 11, 1999.
Patch had not been approved yet.
1999-11-12 Mark Mitchell <mark@codesourcery.com> 1999-11-12 Mark Mitchell <mark@codesourcery.com>
* decl.c (compute_array_index_type): New function, split out from * decl.c (compute_array_index_type): New function, split out from
......
...@@ -66,9 +66,8 @@ void init_init_processing () ...@@ -66,9 +66,8 @@ void init_init_processing ()
BI_header_type = make_lang_type (RECORD_TYPE); BI_header_type = make_lang_type (RECORD_TYPE);
nelts_identifier = get_identifier ("nelts"); nelts_identifier = get_identifier ("nelts");
fields[0] = build_lang_decl (FIELD_DECL, nelts_identifier, sizetype); 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, finish_builtin_type (BI_header_type, "__new_cookie", fields,
0, BI_header_type); 0, double_type_node);
BI_header_size = size_in_bytes (BI_header_type); BI_header_size = size_in_bytes (BI_header_type);
ggc_add_tree_root (&BI_header_type, 1); ggc_add_tree_root (&BI_header_type, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment