re PR sanitizer/80168 (ICE in make_decl_rtl, at varasm.c:1311 w/ VLA and -fsanitize...
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 Mar 2017 08:25:01 +0000 (10:25 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 Mar 2017 08:25:01 +0000 (10:25 +0200)
commit7cd200f63f80396e9ddfe163a3fed86fd2aed672
tree9d890861f781d818c9cf51163d9891b54bed78b5
parent79f512ffebee22885684ff63bc3d66e7e6db9b4b
re PR sanitizer/80168 (ICE in make_decl_rtl, at varasm.c:1311 w/ VLA and -fsanitize=address)

PR sanitizer/80168
* asan.c (instrument_derefs): Copy over last operand from
original COMPONENT_REF to the new COMPONENT_REF with
DECL_BIT_FIELD_REPRESENTATIVE.
* ubsan.c (instrument_object_size): Likewise.

* gcc.dg/asan/pr80168.c: New test.

From-SVN: r246492
gcc/ChangeLog
gcc/asan.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr80168.c [new file with mode: 0644]
gcc/ubsan.c