re PR sanitizer/81111 (Cannot build libstdc++ with -fsanitize=undefined)
authorJakub Jelinek <jakub@redhat.com>
Mon, 19 Jun 2017 15:27:40 +0000 (17:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 19 Jun 2017 15:27:40 +0000 (17:27 +0200)
commit4301ae2263d214d1c4b8e5d3d210e0aafff19e47
tree33b263449b460ac169361eb5dda8ac886bfaf57b
parent21e4389f5029128cf6dc6377ffe678711e91aee4
re PR sanitizer/81111 (Cannot build libstdc++ with -fsanitize=undefined)

PR sanitizer/81111
* ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
use create_tmp_var_raw instead of create_tmp_var, mark it addressable
just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.

* g++.dg/ubsan/pr81111.C: New test.

From-SVN: r249375
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr81111.C [new file with mode: 0644]
gcc/ubsan.c