https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79757
--- Comment #3 from Marek Polacek ---
Author: mpolacek
Date: Thu Mar 9 16:58:17 2017
New Revision: 246010
URL: https://gcc.gnu.org/viewcvs?rev=246010&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/ubsan/pr79757-1.c
trunk/gcc/testsuite/gcc.dg/ubsan/pr79757-2.c
trunk/gcc/testsuite/gcc.dg/ubsan/pr79757-3.c
trunk/gcc/testsuite/gcc.dg/ubsan/pr79757-4.c
trunk/gcc/testsuite/gcc.dg/ubsan/pr79757-5.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog