aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-11-15 10:12:28 -0700
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-12-13 09:36:02 +0100
commitb1b7e36153bbe8ff695a66950b7f6cbb273a7356 (patch)
tree6d2cb65fff2b11d051bc49c732d027e970f1b873 /gcc/ada/gcc-interface/utils.cc
parent71d515570824a3d4f76da8c1b1bdc13762ab694f (diff)
downloadgcc-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/utils.cc')
0 files changed, 0 insertions, 0 deletions