[Bug sanitizer/85018] [8 Regression] Many sanitizer tests ICE since r258681

2018-06-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85018

--- Comment #5 from Jakub Jelinek  ---
Author: jakub
Date: Fri Jun 22 20:51:42 2018
New Revision: 261930

URL: https://gcc.gnu.org/viewcvs?rev=261930=gcc=rev
Log:
Backported from mainline
2018-03-22  Jakub Jelinek  

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  

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  

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  

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

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

Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/asan/pr78651.C
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/dwarf2asm.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/varasm.c

[Bug sanitizer/85018] [8 Regression] Many sanitizer tests ICE since r258681

2018-03-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85018

Jakub Jelinek  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Jakub Jelinek  ---
Fixed.

[Bug sanitizer/85018] [8 Regression] Many sanitizer tests ICE since r258681

2018-03-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85018

--- Comment #3 from Jakub Jelinek  ---
Author: jakub
Date: Thu Mar 22 08:32:12 2018
New Revision: 258757

URL: https://gcc.gnu.org/viewcvs?rev=258757=gcc=rev
Log:
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.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2asm.c
trunk/gcc/varasm.c

[Bug sanitizer/85018] [8 Regression] Many sanitizer tests ICE since r258681

2018-03-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85018

Jakub Jelinek  changed:

   What|Removed |Added

 CC||seurer at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek  ---
*** Bug 85023 has been marked as a duplicate of this bug. ***

[Bug sanitizer/85018] [8 Regression] Many sanitizer tests ICE since r258681

2018-03-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85018

--- Comment #1 from Jakub Jelinek  ---
Created attachment 43723
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43723=edit
gcc8-pr85018.patch

Oops, sorry, missed that asan.c also uses the DECL_INITIAL (decl) = decl; hack.

[Bug sanitizer/85018] [8 Regression] Many sanitizer tests ICE since r258681

2018-03-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85018

Jakub Jelinek  changed:

   What|Removed |Added

   Priority|P3  |P1
 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2018-03-21
   Assignee|unassigned at gcc dot gnu.org  |jakub at gcc dot gnu.org
   Target Milestone|--- |8.0
 Ever confirmed|0   |1