3 if [ $# -eq 3 -a "$2" = '-d' ]; then
5 elif [ $# -ne 1 ]; then
6 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10 -patch) patch $pdir -f --no-backup-if-mismatch -p0 < $0;;
11 -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p0 < $0;;
13 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18 To: gcc-patches at gcc dot gnu dot org
19 # DP: Subject: empty struct initializer fix
20 # DP: From: Richard Henderson <rth at twiddle dot net>
21 # DP: Date: Sun, 20 Feb 2000 00:33:40 -0800
32 struct something X = {
33 foo: (struct empty) { },
42 * c-typeck.c (add_pending_init): Don't abort for multiple
43 fields at the same offset.
44 (pending_init_member): Test the correct member.
46 --- gcc/c-typeck.c.orig Wed Feb 23 18:38:30 2000
47 +++ gcc/c-typeck.c Wed Feb 23 18:38:35 2000
50 if (tree_int_cst_lt (purpose, p->purpose))
52 - else if (tree_int_cst_lt (p->purpose, purpose))
53 + else if (p->purpose != purpose)
58 if (tree_int_cst_lt (DECL_FIELD_BITPOS (purpose),
59 DECL_FIELD_BITPOS (p->purpose)))
61 - else if (tree_int_cst_lt (DECL_FIELD_BITPOS (p->purpose),
62 - DECL_FIELD_BITPOS (purpose)))
63 + else if (p->purpose != purpose)
71 - if (tree_int_cst_equal (field, p->purpose))
72 + if (field == p->purpose)
74 else if (tree_int_cst_lt (field, p->purpose))