From: Jeff Law Date: Wed, 11 Oct 2017 17:21:53 +0000 (-0600) Subject: struct-layout-1_generate.c (generate_fields): Fix typo in address computation of... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=278a84349ae1e964dea6bd3bc456e11eb712c9b4;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 20f7b0f132c..adf2425a67e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-11 Jeff Law + + * 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 * gcc.dg/Wstrict-overflow-7.c: Xfail. diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c b/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c index 80c7355a50e..75e902cd1f4 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c +++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c @@ -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;