]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use default lower bound for vector types in debug info
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 4 Jul 2022 10:14:03 +0000 (12:14 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 4 Jul 2022 10:20:25 +0000 (12:20 +0200)
commit483bd9a02831d9cb615179e5758946f41622d6c9
tree999031b25332e5ac06d902ab0eac05375dbd416b
parenta7ccdfa17e5c45c32828fbeb3642ccdb10caa141
Use default lower bound for vector types in debug info

Vector types are represented as array types with DW_AT_GNU_vector attribute
in the debug info and a range [0 .. TYPE_VECTOR_SUBPARTS - 1].  Now that's
obviously skewed toward the C family of languages, therefore the attached
patch changes the lower bound to the default for the language of the CU.

gcc/
* dwarf2out.cc (gen_array_type_die): Use the default lower bound of
the language for vector types.
gcc/dwarf2out.cc