diff options
author | Vladimir N. Makarov <vmakarov@cygnus.com> | 1999-02-08 16:00:46 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 1999-02-08 16:00:46 +0000 |
commit | 43f7bed5382117d1ad0c0cd11e572697e18fe19d (patch) | |
tree | 60dfefde34e222d8b7627ad7d2847648aa63f309 /gcc/varasm.c | |
parent | ef5ae176719e04e4f54bc95cde9447e52af62906 (diff) | |
download | gcc-43f7bed5382117d1ad0c0cd11e572697e18fe19d.zip gcc-43f7bed5382117d1ad0c0cd11e572697e18fe19d.tar.gz gcc-43f7bed5382117d1ad0c0cd11e572697e18fe19d.tar.bz2 |
c-typeck.c (check_init_type_bitfields): Use nonincremental initialization of unions whose first member is a bitfield.
Mon Feb 9 18:57:45 1999 Vladimir N. Makarov <vmakarov@cygnus.com>
* c-typeck.c (check_init_type_bitfields): Use nonincremental
initialization of unions whose first member is a bitfield.
Remove unnecessary code for checking the declaration mode
after DECL_C_BIT_FIELD.
* varasm.c (output_constructor): Additional comment about the
constructor of bitfield union initialization.
From-SVN: r25093
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index dc46c98..213c07c 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3998,7 +3998,11 @@ output_constructor (exp, size) FIELD goes through the structure fields, if the constant is a structure. if the constant is a union, then we override this, by getting the field from the TREE_LIST element. - But the constant could also be an array. Then FIELD is zero. */ + But the constant could also be an array. Then FIELD is zero. + + There is always a maximum of one element in the chain LINK for unions + (even if the initializer in a source program incorrectly contains + more one). */ for (link = CONSTRUCTOR_ELTS (exp); link; link = TREE_CHAIN (link), |