From: Eric Botcazou Date: Wed, 18 Aug 2021 12:22:07 +0000 (+0200) Subject: Fix thinko in latest change for GNAT encodings X-Git-Tag: basepoints/gcc-13~5324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88ef1a14bb4ba2bb9e6742bb5ed29d83b30723d0;p=thirdparty%2Fgcc.git Fix thinko in latest change for GNAT encodings gcc/ada/ * gcc-interface/decl.c (gnat_to_gnu_entity) : Fix thinko in latest change. --- diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index 4b6479b2a04f..5cedb740a2eb 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -1998,10 +1998,10 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) so we use an intermediate step for standard DWARF. */ if (debug_info_p) { - if (gnat_encodings == DWARF_GNAT_ENCODINGS_ALL) - add_parallel_type (gnu_type, DECL_PARALLEL_TYPE (t)); - else + if (gnat_encodings != DWARF_GNAT_ENCODINGS_ALL) SET_TYPE_DEBUG_TYPE (gnu_type, gnu_field_type); + else if (DECL_PARALLEL_TYPE (t)) + add_parallel_type (gnu_type, DECL_PARALLEL_TYPE (t)); } }