]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR sanitizer/81111
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2017 15:27:40 +0000 (15:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2017 15:27:40 +0000 (15:27 +0000)
commit613ef09e230b9b0d968c3dd1ec829b9d8fb8eff5
tree33b263449b460ac169361eb5dda8ac886bfaf57b
parent34df3cfba90d7c54c4a5ae86a697db729d19e155
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249375 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ubsan/pr81111.C [new file with mode: 0644]
gcc/ubsan.c