struct-layout-1_generate.c (generate_fields): Fix typo in address computation of end of complex_attrib_array_types.

* gcc.dg/struct-layout-1_generate.c (generate_fields): Fix typo in
	address computation of end of complex_attrib_array_types.

From-SVN: r253650
This commit is contained in:
Jeff Law 2017-10-11 11:21:53 -06:00 committed by Jeff Law
parent a92f67261a
commit 278a84349a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2017-10-11 Jeff Law <law@redhat.com>
* gcc.dg/struct-layout-1_generate.c (generate_fields): Fix typo in
address computation of end of complex_attrib_array_types.
2017-10-11 Marc Glisse <marc.glisse@inria.fr>
* gcc.dg/Wstrict-overflow-7.c: Xfail.

View File

@ -1893,7 +1893,7 @@ generate_fields (enum FEATURE features, struct entry *e, struct entry *parent,
|| (e[n].type >= &attrib_array_types[0]
&& e[n].type < &attrib_array_types[NAATYPES2])
|| (e[n].type >= &complex_attrib_array_types[0]
&& e[n].type < &complex_attrib_array_types[NAATYPES2])
&& e[n].type < &complex_attrib_array_types[NCAATYPES2])
|| (e[n].type >= &aligned_bitfld_types[0]
&& e[n].type < &aligned_bitfld_types[n_aligned_bitfld_types])))
e[n].attrib = NULL;