Allow wildcards in -fsanitize-sections.
authorYury Gribov <y.gribov@samsung.com>
Wed, 22 Apr 2015 11:44:26 +0000 (11:44 +0000)
committerYury Gribov <ygribov@gcc.gnu.org>
Wed, 22 Apr 2015 11:44:26 +0000 (11:44 +0000)
commit860503d8cc91ca9a5d8bf3db0b88281f31257603
tree2fa8400720fb57497963cddeeb781ee766598e6f
parent5cf3629251b7551a6082c1dca59675f042f986f4
Allow wildcards in -fsanitize-sections.

2015-04-22  Yury Gribov  <y.gribov@samsung.com>

Allow wildcards in -fsanitize-sections.

gcc/
* asan.c (set_sanitized_sections): Parse incoming arg.
(section_sanitized_p): Support wildcards.
* doc/invoke.texi (-fsanitize-sections): Update description.

gcc/testsuite/
* c-c++-common/asan/user-section-1.c: New test.
* c-c++-common/asan/user-section-2.c: New test.
* c-c++-common/asan/user-section-3.c: New test.

From-SVN: r222322
gcc/ChangeLog
gcc/asan.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/asan/user-section-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/user-section-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/user-section-3.c [new file with mode: 0644]