aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-07-10 11:38:55 -0600
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-10-25 11:09:04 +0200
commit0eb688077f50d24e2fe21e7c9385b74b81e0a925 (patch)
tree9d62f09099fd27db2d51f4ad21fb5df8a8f680ee /gcc/ada/gcc-interface
parentb857742bc8b675073b5c2ab7687ce09a42789ead (diff)
downloadgcc-0eb688077f50d24e2fe21e7c9385b74b81e0a925.zip
gcc-0eb688077f50d24e2fe21e7c9385b74b81e0a925.tar.gz
gcc-0eb688077f50d24e2fe21e7c9385b74b81e0a925.tar.bz2
ada: Mark XUB types as nameless
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.
Diffstat (limited to 'gcc/ada/gcc-interface')
-rw-r--r--gcc/ada/gcc-interface/decl.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc
index 14b39b3..256541d 100644
--- a/gcc/ada/gcc-interface/decl.cc
+++ b/gcc/ada/gcc-interface/decl.cc
@@ -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