gcc/ada/
* gcc-interface/decl.c (gnat_to_gnu_entity) <discrete_type>: Fix
thinko in latest change.
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));
}
}