re PR middle-end/64937 (compare debug failure with -fsanitize=address)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Feb 2015 18:26:59 +0000 (19:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Feb 2015 18:26:59 +0000 (19:26 +0100)
commit62276744cea11dfed2d327eab10006d46b2f0f84
tree08d383ce9e240b9e0c6d4b623c5b133bdc8e1cc1
parent43a68a9df5b97efae86b3e8ab47776dc9d7fa702
re PR middle-end/64937 (compare debug failure with -fsanitize=address)

PR middle-end/64937
* dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
1 before, push it to abstract_vec.
(dwarf2out_abstract_function): Adjust caller.  Don't call
set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
DECL_ABSTRACT_P flags for all abstract_vec elts.

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

From-SVN: r220483
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/pr64937.C [new file with mode: 0644]