diff options
author | Richard Henderson <rth@cygnus.com> | 2000-03-19 03:56:54 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-03-19 03:56:54 -0800 |
commit | ef49f59036534dc7927217a877fe0893970b4cc9 (patch) | |
tree | 5b367fa41f0f7094931b1bfcc16cb0634cebb708 /gcc/stor-layout.c | |
parent | 5d6a090fbdc5a6909ae09224a9b6a9f6348a8c6f (diff) | |
download | gcc-ef49f59036534dc7927217a877fe0893970b4cc9.zip gcc-ef49f59036534dc7927217a877fe0893970b4cc9.tar.gz gcc-ef49f59036534dc7927217a877fe0893970b4cc9.tar.bz2 |
* stor-layout.c (layout_decl): Don't abort on any zero sized decl.
From-SVN: r32638
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 62363cb..690ec36 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -308,17 +308,6 @@ layout_decl (decl, known_align) { HOST_WIDE_INT spec_size; - /* The front-end may set the explicit width of the field, so its - size may not be the same as the size of its type. This happens - with bitfields, of course (an `int' bitfield may be only 2 bits, - say), but it also happens with other fields. For example, the - C++ front-end creates zero-sized fields corresponding to empty - base classes, and depends on layout_type setting - DECL_FIELD_BITPOS correctly for the field. */ - if (integer_zerop (DECL_SIZE (decl)) - && DECL_NAME (decl) != NULL_TREE) - abort (); - /* Size is specified in number of bits. */ spec_size = TREE_INT_CST_LOW (DECL_SIZE (decl)); if (spec_size % BITS_PER_UNIT == 0) |