c.opt (flag_chkp_flexible_struct_trailing_arrays): Add new option.
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Tue, 27 Dec 2016 13:31:43 +0000 (13:31 +0000)
committerAlexander Ivchenko <aivchenk@gcc.gnu.org>
Tue, 27 Dec 2016 13:31:43 +0000 (13:31 +0000)
commit8ba4f506395ff50be7ecf788734676c9f4cfd200
treef1e12d47165d6fd6b71f33d3c80dcef9aa8c9325
parent5735741b128fecd49f45170b8a85e12ee7771371
c.opt (flag_chkp_flexible_struct_trailing_arrays): Add new option.

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.

From-SVN: r243936
gcc/ChangeLog
gcc/c-family/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/mpx/vla-trailing-1-lbv.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/vla-trailing-1-nov.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mpx/vla-trailing-1-ubv.c [new file with mode: 0644]
gcc/tree-chkp.c