aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2011-04-02 08:54:18 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-04-02 08:54:18 +0000
commitacccc61c771bfc3f78a49805a3382626314da520 (patch)
tree8258d00741ed378ea91486a74d352f09b55600eb /gcc/ada
parent583eb0c997f44e4e6b3aff9c7a7ef92e0bd137db (diff)
downloadgcc-acccc61c771bfc3f78a49805a3382626314da520.zip
gcc-acccc61c771bfc3f78a49805a3382626314da520.tar.gz
gcc-acccc61c771bfc3f78a49805a3382626314da520.tar.bz2
decl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on enumeration types.
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on enumeration types. From-SVN: r171884
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/gcc-interface/decl.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index dd10822..ef21acc 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,5 +1,10 @@
2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
+ * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
+ DECL_ARTIFICIAL flag on enumeration types.
+
+2011-04-02 Eric Botcazou <ebotcazou@adacore.com>
+
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
fat pointer types artificial unconditionally.
<E_Array_Subtype>: Attach the base array type as a parallel type if it
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c
index 7a18d32..2902396 100644
--- a/gcc/ada/gcc-interface/decl.c
+++ b/gcc/ada/gcc-interface/decl.c
@@ -4960,9 +4960,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
SET_TYPE_RM_MIN_VALUE (gnu_scalar_type, gnu_low_bound);
SET_TYPE_RM_MAX_VALUE (gnu_scalar_type, gnu_high_bound);
- /* Write full debugging information. Since this has both a
- typedef and a tag, avoid outputting the name twice. */
- DECL_ARTIFICIAL (gnu_decl) = 1;
+ /* Write full debugging information. */
rest_of_type_decl_compilation (gnu_decl);
}