Make dwarf2out punt for MODE_VECTOR_BOOL
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 10 Dec 2019 12:20:20 +0000 (12:20 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 10 Dec 2019 12:20:20 +0000 (12:20 +0000)
commitb78d005e8fa47fd698f103ee62d145c01f05de38
tree3879ac00fe2d6d250b7ad1fd0747b798bc8b8195
parentb78500ecb86ef800509270d2d2f161e4eb9aadd0
Make dwarf2out punt for MODE_VECTOR_BOOL

The dwarf2 handling of vector constants currently divides the vector
into a length (number of elements) and byte element size.  This doesn't
work well for MODE_VECTOR_BOOL, where several elements are packed into
the same byte.

We should probably add a way of encoding this in future, but for now
the safest thing is to punt, like we already do for variable-length
vectors.

2019-12-10  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* dwarf2out.c (loc_descriptor): Punt for MODE_VECTOR_BOOL.
(add_const_value_attribute): Likewise.

gcc/testsuite/
* gcc.target/aarch64/sve/acle/general/debug_4.c: New test.

From-SVN: r279165
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/sve/acle/general/debug_4.c [new file with mode: 0644]