Do not error for no_sanitize attributes (PR sanitizer/82490).
authorMartin Liska <mliska@suse.cz>
Wed, 11 Oct 2017 12:31:59 +0000 (14:31 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 11 Oct 2017 12:31:59 +0000 (12:31 +0000)
commit3a266bcd811d8fdf3e9ad9134c40324aafa1bac9
tree7723ddb415344c6081b7f90a395dec5c0f867a3e
parent050dcb6ad8de794e46d5eb377083fb8b9acf642e
Do not error for no_sanitize attributes (PR sanitizer/82490).

2017-10-11  Martin Liska  <mliska@suse.cz>

PR sanitizer/82490
* opts.c (parse_no_sanitize_attribute): Do not use error_value
variable.
* opts.h (parse_no_sanitize_attribute): Remove last argument.
2017-10-11  Martin Liska  <mliska@suse.cz>

PR sanitizer/82490
* c-attribs.c (handle_no_sanitize_attribute): Report directly
Wattributes warning.
2017-10-11  Martin Liska  <mliska@suse.cz>

PR sanitizer/82490
* c-c++-common/ubsan/attrib-5.c: New test.

From-SVN: r253640
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-attribs.c
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/attrib-5.c [new file with mode: 0644]