dwarf2: use DW_ATE_UTF for char8_t
authorJason Merrill <jason@redhat.com>
Wed, 24 Aug 2022 20:31:04 +0000 (16:31 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 25 Aug 2022 21:03:01 +0000 (17:03 -0400)
commit30e160475489867a09ed89532cae135b5849cf98
tree74171d5abf8ae88cfbcfc22c102b982786fddbbd
parent980e0aa0ce3bdfec61ca766a71a31a89c12f882e
dwarf2: use DW_ATE_UTF for char8_t

While looking at the Rust changes to dwarf2out I noticed that this was
missing from the char8_t support.

gcc/ChangeLog:

* dwarf2out.cc (base_type_die): Also use DW_ATE_UTF for char8_t.

gcc/testsuite/ChangeLog:

* g++.dg/debug/dwarf2/utf-1.C: New test.
gcc/dwarf2out.cc
gcc/testsuite/g++.dg/debug/dwarf2/utf-1.C [new file with mode: 0644]