https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68270
Alexander Ivchenko <aivchenk at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aivchenk at gmail dot com --- Comment #3 from Alexander Ivchenko <aivchenk at gmail dot com> --- Addressed in ------------------------------------------------------------------------ r243936 | aivchenk | 2016-12-27 16:31:43 +0300 (Tue, 27 Dec 2016) | 18 lines 2016-12-27 Alexander Ivchenko <alexander.ivche...@intel.com> * c-family/c.opt (flag_chkp_flexible_struct_trailing_arrays): Add new option. (fchkp-narrow-to-innermost-array): Fix typo. * doc/cpp.texi (flag_chkp_flexible_struct_trailing_arrays): Ditto. * tree-chkp.c (chkp_may_narrow_to_field ): Forbid narrowing when flag_chkp_flexible_struct_trailing_arrays is used and the field is the last array field in the structure. 2016-12-27 Alexander Ivchenko <alexander.ivche...@intel.com> * gcc.target/i386/mpx/vla-trailing-1-lbv.c: New test. * gcc.target/i386/mpx/vla-trailing-1-nov.c: Ditto. * gcc.target/i386/mpx/vla-trailing-1-ubv.c: Ditto. The new option -fchkp-flexible-struct-trailing-arrays will allow to treat all trailing arrays in structures as possibly flexible. The bug can be closed