]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use DW_ATE_UTF for the Rust 'char' type
authorTom Tromey <tom@tromey.com>
Tue, 23 Aug 2022 14:47:13 +0000 (15:47 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:02 +0000 (14:00 +0100)
commitdd950cbbb97ff5ebc203cba6c2112edd322b6f35
tree16b962ee025f53bd101f93300a74bf298d4feb62
parentb4fddbe9592e9feb37ce567d90af822b75995531
Use DW_ATE_UTF for the Rust 'char' type

The Rust 'char' type should use the DWARF DW_ATE_UTF encoding.

gcc/
* dwarf2out.cc (is_rust): New.
(base_type_die): Use DW_ATE_UTF for the Rust 'char' type.
(gen_compile_unit_die): Handle "GNU Rust".

Co-authored-by: Mark Wielaard <mark@klomp.org>
Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
gcc/dwarf2out.cc