From c23524153d2b7b683526969a0d9b85efdc8c2767 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Tue, 25 Jun 2019 08:17:08 +0000 Subject: decl.c (gnat_to_gnu_entity): Remove superfluous test in previous change. * gcc-interface/decl.c (gnat_to_gnu_entity): Remove superfluous test in previous change. * gcc-interface/gigi.h (maybe_character_type): Fix formatting. (maybe_character_value): Likewise. From-SVN: r272637 --- gcc/ada/gcc-interface/decl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/ada/gcc-interface/decl.c') diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index df40543..a083816 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -1855,8 +1855,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) = Has_Biased_Representation (gnat_entity); /* Do the same processing for Character subtypes as for types. */ - if ((TREE_CODE (TREE_TYPE (gnu_type)) == INTEGER_TYPE - || TREE_CODE (TREE_TYPE (gnu_type)) == ARRAY_TYPE) + if (TREE_CODE (TREE_TYPE (gnu_type)) == INTEGER_TYPE && TYPE_STRING_FLAG (TREE_TYPE (gnu_type))) { TYPE_NAME (gnu_type) = gnu_entity_name; -- cgit v1.1