sanitizer: do not inline no-sanitize into sanitizer fn
authorMartin Liska <mliska@suse.cz>
Tue, 9 Jun 2020 11:03:55 +0000 (13:03 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 9 Jun 2020 12:35:43 +0000 (14:35 +0200)
commit4089df8ef4a63126b0774c39b6638845244c20d2
tree37e0c330769dc4cfd24d1f1477b48f588e36f1dd
parentbb3ab62a8b4a108f01ea2eddfe31e9f733bd9cb6
sanitizer: do not inline no-sanitize into sanitizer fn

gcc/ChangeLog:

* cif-code.def (ATTRIBUTE_MISMATCH): Rename to...
(SANITIZE_ATTRIBUTE_MISMATCH): ...this.
* ipa-inline.c (sanitize_attrs_match_for_inline_p):
Handle all sanitizer options.
(can_inline_edge_p): Use renamed CIF_* enum value.

gcc/testsuite/ChangeLog:

* c-c++-common/asan/inline.c: New test.
* c-c++-common/asan/inline-kernel.c: New test.
* c-c++-common/tsan/inline.c: New test.
* c-c++-common/ubsan/inline.c: New test.
gcc/cif-code.def
gcc/ipa-inline.c
gcc/testsuite/c-c++-common/asan/inline-kernel.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/asan/inline.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/tsan/inline.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/inline.c [new file with mode: 0644]