re PR sanitizer/66190 (ICE: tree code ‘call_expr’ is not supported in LTO streams...
authorMarek Polacek <polacek@redhat.com>
Wed, 3 Jun 2015 16:54:24 +0000 (16:54 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 3 Jun 2015 16:54:24 +0000 (16:54 +0000)
commit7b3a9795438b33a0137b47f422a9542c5e2d7ccc
tree34ec9ec91f1ff814d8b450858e27cb18a4ccf1d4
parent5123acd24138878133e447eb369831caa03d305a
re PR sanitizer/66190 (ICE: tree code ‘call_expr’ is not supported in LTO streams with -fsanitize=null)

PR sanitizer/66190
* cp-gimplify.c (struct cp_genericize_data): Add no_sanitize_p.
(cp_genericize_r): Don't instrument static initializers.
(cp_genericize_tree): Initialize wtd.no_sanitize_p.

* g++.dg/ubsan/static-init-1.C: New test.
* g++.dg/ubsan/static-init-2.C: New test.
* g++.dg/ubsan/static-init-3.C: New test.

From-SVN: r224096
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/static-init-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ubsan/static-init-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ubsan/static-init-3.C [new file with mode: 0644]