diff options
author | Diego Novillo <dnovillo@cygnus.com> | 1999-11-12 19:59:01 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 1999-11-12 14:59:01 -0500 |
commit | 3ca7341a227a02de35fd77aa49efbfcc1f6a1372 (patch) | |
tree | d8bd310ab7e6a3d736357f30a0dd644f9e5433c8 /gcc | |
parent | 8ad1aa564df9661c8544dcc6afc6d47ef9c583ef (diff) | |
download | gcc-3ca7341a227a02de35fd77aa49efbfcc1f6a1372.zip gcc-3ca7341a227a02de35fd77aa49efbfcc1f6a1372.tar.gz gcc-3ca7341a227a02de35fd77aa49efbfcc1f6a1372.tar.bz2 |
init.c (init_init_processing): Re-instated Nov 11 patch after approval.
* init.c (init_init_processing): Re-instated Nov 11 patch after
approval.
From-SVN: r30510
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/init.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 646c6e3..4239604 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Fri Nov 12 12:56:32 MST 1999 Diego Novillo <dnovillo@cygnus.com> + + * init.c (init_init_processing): Re-instated Nov 11 patch after + approval. + Fri Nov 12 10:42:02 MST 1999 Diego Novillo <dnovillo@cygnus.com> * init.c (init_init_processing): Undo patch from Nov 11, 1999. diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 07c45f4..117c814 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -66,8 +66,12 @@ 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); + + /* Use the biggest alignment supported by the target to prevent operator + new from returning misaligned pointers. */ + 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); |