struct-layout-1_generate.c (generate_fields): Fix typo in address computation of...
authorJeff Law <law@redhat.com>
Wed, 11 Oct 2017 17:21:53 +0000 (11:21 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 11 Oct 2017 17:21:53 +0000 (11:21 -0600)
* 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
gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c

index 20f7b0f132c5ddbbddba8a53ec6c9520965e9080..adf2425a67e09ab5dbec7df3cea7700c7728e447 100644 (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.
index 80c7355a50e6903300bb584303fcc6c08d65c60a..75e902cd1f462a3e0f5d65923d959ca1f6d7f1b3 100644 (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;