diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-07 08:54:32 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-07 08:54:32 +0000 |
commit | 0b2410336fdb884c7deedf45c16ba57539ff4ffa (patch) | |
tree | 1e788927b81a47a45083c0dbbb5b39a39a643941 /gcc/stor-layout.c | |
parent | 0262a277eb0463102f8f55db9006167e27246a3e (diff) | |
download | gcc-0b2410336fdb884c7deedf45c16ba57539ff4ffa.tar.gz |
* java/typeck.c (java_array_type_length, build_prim_array_type):
Represent empty arrays by NULL index.
* stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45460 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 3a4f998902f..e145b97e5d6 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1110,6 +1110,7 @@ compute_record_mode (type) || (TYPE_MODE (TREE_TYPE (field)) == BLKmode && ! TYPE_NO_FORCE_BLK (TREE_TYPE (field))) || ! host_integerp (bit_position (field), 1) + || DECL_SIZE (field) == 0 || ! host_integerp (DECL_SIZE (field), 1)) return; |