re PR sanitizer/79757 (ICE in declare_vars, at gimplify.c:634)
authorMarek Polacek <polacek@redhat.com>
Thu, 9 Mar 2017 16:58:17 +0000 (16:58 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 9 Mar 2017 16:58:17 +0000 (16:58 +0000)
commit3661842863344b18d736c0f9fd02983ebceaed52
tree3e36b6d392adffb0a06df6a6ae4f007457281828
parent01e5af5a2f5fa4813e359bc03d42e98d091c7a2d
re PR sanitizer/79757 (ICE in declare_vars, at gimplify.c:634)

PR sanitizer/79757
* c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
parameter declarations with initializers.

* gcc.dg/ubsan/pr79757-1.c: New test.
* gcc.dg/ubsan/pr79757-2.c: New test.
* gcc.dg/ubsan/pr79757-3.c: New test.
* gcc.dg/ubsan/pr79757-4.c: New test.
* gcc.dg/ubsan/pr79757-5.c: New test.

From-SVN: r246010
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr79757-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ubsan/pr79757-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ubsan/pr79757-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ubsan/pr79757-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ubsan/pr79757-5.c [new file with mode: 0644]