re PR sanitizer/70342 (g++ -fsanitize=undefined never finishes compiling (>24h) in...
authorMarek Polacek <polacek@redhat.com>
Fri, 29 Apr 2016 12:32:45 +0000 (12:32 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 29 Apr 2016 12:32:45 +0000 (12:32 +0000)
commit500ecf4abd0f29d0cb4555de105a3f4152b6c423
tree8749fd9d4a954d7caca29c71b93fd5d965172f0e
parenta1f7021242e827f69cd1c2ed5d5eaf33ddfcd196
re PR sanitizer/70342 (g++ -fsanitize=undefined never finishes compiling (>24h) in qtxmlpatterns test suite)

PR sanitizer/70342
* fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
TARGET_EXPR_SLOT as a base.

* g++.dg/ubsan/null-7.C: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r235637
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/null-7.C [new file with mode: 0644]