diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2002-04-17 23:13:11 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2002-04-18 00:13:11 +0100 |
commit | b798d8b64db189b0d3481263de714817ede0e4ce (patch) | |
tree | 586cfa68033482cd0f99fe79ca195bd293bb4892 /gcc/java/class.c | |
parent | b7403f10f2892ac2f2f4f09f9635d41043f728d9 (diff) | |
download | gcc-b798d8b64db189b0d3481263de714817ede0e4ce.zip gcc-b798d8b64db189b0d3481263de714817ede0e4ce.tar.gz gcc-b798d8b64db189b0d3481263de714817ede0e4ce.tar.bz2 |
class.c (make_class_data): Set DECL_ALIGN on static class data, for hash synchronization.
* class.c (make_class_data): Set DECL_ALIGN on static class data,
for hash synchronization.
* expr.c (java_expand_expr): Set DECL_ALIGN on static array objects.
* decl.c (java_init_decl_processing): Don't set TYPE_ALIGN for
class_type_node.
From-SVN: r52448
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index c8290ea..7b8c5e0 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1736,6 +1736,11 @@ make_class_data (type) FINISH_RECORD_CONSTRUCTOR (cons); DECL_INITIAL (decl) = cons; + + /* Hash synchronization requires at least 64-bit alignment. */ + if (flag_hash_synchronization && POINTER_SIZE < 64) + DECL_ALIGN (decl) = 64; + rest_of_decl_compilation (decl, (char*) 0, 1, 0); } |