re PR middle-end/81005 (-fsanitize=null and -fsanitize=alignment doesn't check aggreg...
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Jun 2017 18:53:16 +0000 (20:53 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Jun 2017 18:53:16 +0000 (20:53 +0200)
commit0d05f68547fb7478f3a210a6240d3a05465daad9
tree84461529e5d68a05a471ad1b9597446211aa204e
parent3159d897bda6798885f34eaaba916b46ebe2382f
re PR middle-end/81005 (-fsanitize=null and -fsanitize=alignment doesn't check aggregate arguments of calls)

PR middle-end/81005
* ubsan.c (instrument_null): Avoid pointless code temporary.
(pass_ubsan::execute): Instrument aggregate arguments of calls.

* c-c++-common/ubsan/align-10.c: New test.
* c-c++-common/ubsan/null-13.c: New test.

From-SVN: r249030
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/align-10.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/ubsan/null-13.c [new file with mode: 0644]
gcc/ubsan.c