]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR sanitizer/85018 (Many sanitizer tests ICE since r258681)
authorJakub Jelinek <jakub@redhat.com>
Fri, 22 Jun 2018 20:51:42 +0000 (22:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Jun 2018 20:51:42 +0000 (22:51 +0200)
commit9d7e44b0069a150ea7f86c763423e427e5ba1536
tree500fde1e5cfb2cdc02c23eafb61f7cd167a15da8
parent6a1e018fa43fec1aa455c4b407a35095b0012cde
backport: re PR sanitizer/85018 (Many sanitizer tests ICE since r258681)

Backported from mainline
2018-03-22  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/85018
* dwarf2asm.c (dw2_output_indirect_constant_1): Set
DECL_INITIAL (decl) to decl at the end.
* varasm.c (use_blocks_for_decl_p): Revert the 2018-03-20 change,
adjust the comment.

2018-03-20  Jakub Jelinek  <jakub@redhat.com>

PR target/84990
* dwarf2asm.c (dw2_output_indirect_constant_1): Temporarily turn off
flag_section_anchors.
* varasm.c (use_blocks_for_decl_p): Remove hack for
dw2_force_const_mem.

2018-03-19  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/78651
* dwarf2asm.c: Include fold-const.c.
(dw2_output_indirect_constant_1): Set DECL_INITIAL (decl) to ADDR_EXPR
of decl rather than decl itself.

2018-03-19  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR sanitizer/78651
* dwarf2asm.c (dw2_output_indirect_constant_1): Disable ASan before
calling assemble_variable.

* g++.dg/asan/pr78651.C: New test.

From-SVN: r261930
gcc/ChangeLog
gcc/dwarf2asm.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/pr78651.C [new file with mode: 0644]
gcc/varasm.c