[Bug middle-end/68270] [MPX] Common pattern for variable sized data clashes with MPX bound checks
aivchenk at gmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 27 13:44:00 GMT 2016
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.ivchenko@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.ivchenko@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
More information about the Gcc-bugs
mailing list