]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Revert recent change in debug info for vector array types
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 29 Jun 2022 19:44:35 +0000 (21:44 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 13 Jul 2022 10:01:21 +0000 (10:01 +0000)
It lost too much useful information.

gcc/ada/

* gcc-interface/decl.cc (gnat_to_gnu_entity): Do not set the debug
type for vector types.

gcc/ada/gcc-interface/decl.cc

index 217414312c7bc4cd964811a256b65e902f1286c5..96ea13e43d1843a5fc84365747364803dfbac032 100644 (file)
@@ -4785,14 +4785,6 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition)
       else
        gnu_decl = create_type_decl (gnu_entity_name, gnu_type, artificial_p,
                                     debug_info_p, gnat_entity);
-
-      /* For vector types, make the representative array the debug type.  */
-      if (VECTOR_TYPE_P (gnu_type))
-       {
-         tree rep = TYPE_REPRESENTATIVE_ARRAY (gnu_type);
-         TYPE_NAME (rep) = DECL_NAME (gnu_decl);
-         SET_TYPE_DEBUG_TYPE (gnu_type, rep);
-       }
     }
 
   /* If we haven't already, associate the ..._DECL node that we just made with