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

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 22 20:52:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85018

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Jun 22 20:51:42 2018
New Revision: 261930

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

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


More information about the Gcc-bugs mailing list