]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Mark XUA types as artificial
authorTom Tromey <tromey@adacore.com>
Wed, 10 Jul 2024 17:52:17 +0000 (11:52 -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 XUA types.  This patch changes the
compiler to unconditionally mark these as artificial; a subsequent
patch will arrange for the name to be omitted.

gcc/ada/ChangeLog:

* gcc-interface/decl.cc (gnat_to_gnu_entity): Pass 'true' to
create_type_decl when creating XUA type.

gcc/ada/gcc-interface/decl.cc

index 256541df41133661b050e669b58f40937f4aa52f..ba75fa33093493d766cf454ad2d15a6850b466e4 100644 (file)
@@ -2483,7 +2483,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
        /* See the above description for the rationale.  */
        tree gnu_tmp_decl
          = create_type_decl (create_concat_name (gnat_entity, "XUA"), tem,
-                             artificial_p, debug_info_p, gnat_entity);
+                             true, debug_info_p, gnat_entity);
        TYPE_CONTEXT (tem) = gnu_fat_type;
        TYPE_CONTEXT (TYPE_POINTER_TO (tem)) = gnu_fat_type;