diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-25 10:38:24 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-25 10:38:24 +0000 |
commit | 62e71c36f705829264c397404224a883b7d0e6b7 (patch) | |
tree | 79657bd79179deb3776bc483768f06b4806715ae /gcc/ada/gcc-interface | |
parent | d5bfc154eb5fa11d1015a06bd5f461a47fe270b0 (diff) | |
download | gcc-62e71c36f705829264c397404224a883b7d0e6b7.tar.gz |
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
back kludge.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/gcc-interface')
-rw-r--r-- | gcc/ada/gcc-interface/decl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index 94f14bf6b06..d55d56b61f6 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -2546,9 +2546,14 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition) | (TYPE_QUAL_VOLATILE * Treat_As_Volatile (gnat_entity)))); + /* Make it artificial only if the base type was artificial as well. + That's sort of "morally" true and will make it possible for the + debugger to look it up by name in DWARF, which is necessary in + order to decode the packed array type. */ gnu_decl = create_type_decl (gnu_entity_name, gnu_type, attr_list, - !Comes_From_Source (gnat_entity), + !Comes_From_Source (gnat_entity) + && !Comes_From_Source (Etype (gnat_entity)), debug_info_p, gnat_entity); /* Save it as our equivalent in case the call below elaborates |