]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Mark XUB types as nameless
authorTom Tromey <tromey@adacore.com>
Wed, 10 Jul 2024 17:38:55 +0000 (11:38 -0600)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 25 Oct 2024 09:09:04 +0000 (11:09 +0200)
gdb does not need the name of XUB types.  This patch changes the
compiler to omit these names from the DWARF when minimal encodings are
in use.

gcc/ada/ChangeLog:

* gcc-interface/decl.cc (gnat_to_gnu_entity): Set TYPE_NAMELESS on
XUB types.

gcc/ada/gcc-interface/decl.cc

index 14b39b336bd8b498bba024794dea10bb35a96612..256541df41133661b050e669b58f40937f4aa52f 100644 (file)
@@ -2393,6 +2393,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
        /* Install all the fields into the template.  */
        TYPE_NAME (gnu_template_type)
          = create_concat_name (gnat_entity, "XUB");
+       TYPE_NAMELESS (gnu_template_type)
+         = gnat_encodings != DWARF_GNAT_ENCODINGS_ALL;
        gnu_template_fields = NULL_TREE;
        for (index = 0; index < ndim; index++)
          gnu_template_fields