From 278a84349ae1e964dea6bd3bc456e11eb712c9b4 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 11 Oct 2017 11:21:53 -0600 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2