diff options
author | Tom Tromey <tromey@adacore.com> | 2024-07-10 11:52:17 -0600 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-10-25 11:09:04 +0200 |
commit | 125a6e41176b7584caf4cf01c5b2ce77c9f195d2 (patch) | |
tree | 0f5fac94ec2c8e87fc1ea0063e923a1ee3ca831f /gcc | |
parent | 0eb688077f50d24e2fe21e7c9385b74b81e0a925 (diff) | |
download | gcc-125a6e41176b7584caf4cf01c5b2ce77c9f195d2.zip gcc-125a6e41176b7584caf4cf01c5b2ce77c9f195d2.tar.gz gcc-125a6e41176b7584caf4cf01c5b2ce77c9f195d2.tar.bz2 |
ada: Mark XUA types as artificial
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/gcc-interface/decl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc index 256541d..ba75fa3 100644 --- a/gcc/ada/gcc-interface/decl.cc +++ b/gcc/ada/gcc-interface/decl.cc @@ -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; |