diff options
author | Tom Tromey <tromey@adacore.com> | 2024-11-15 10:12:28 -0700 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-12-13 09:36:02 +0100 |
commit | b1b7e36153bbe8ff695a66950b7f6cbb273a7356 (patch) | |
tree | 6d2cb65fff2b11d051bc49c732d027e970f1b873 /gcc/ada/gcc-interface/decl.cc | |
parent | 71d515570824a3d4f76da8c1b1bdc13762ab694f (diff) | |
download | gcc-b1b7e36153bbe8ff695a66950b7f6cbb273a7356.zip gcc-b1b7e36153bbe8ff695a66950b7f6cbb273a7356.tar.gz gcc-b1b7e36153bbe8ff695a66950b7f6cbb273a7356.tar.bz2 |
ada: Pass artificial_p to create_type_decl
The recent "nameless types" change to gcc-interface caused the gdb
pretty-printer for VSS to fail. This happens because one call to
create_type_decl unconditionally passes "true" as the "artificial_p"
parameter. This patch changes this call to instead pass the entity's
local artificial_p value instead. This makes sense, I think, because
the type decl being created for debug purposes (as the comment says)
is there to represent the relevant entity from the source.
gcc/ada/ChangeLog:
* gcc-interface/decl.cc (gnat_to_gnu_entity): Pass artificial_p to
create_type_decl.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
-rw-r--r-- | gcc/ada/gcc-interface/decl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc index 024bf45..8f20de2 100644 --- a/gcc/ada/gcc-interface/decl.cc +++ b/gcc/ada/gcc-interface/decl.cc @@ -4558,8 +4558,8 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) false, definition, false); if (gnu_type != orig_type && !gnu_decl) - create_type_decl (gnu_entity_name, orig_type, true, debug_info_p, - gnat_entity); + create_type_decl (gnu_entity_name, orig_type, artificial_p, + debug_info_p, gnat_entity); } /* Now set the RM size of the type. We cannot do it before padding |