aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2016-06-06 09:55:44 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2016-06-06 09:55:44 +0000
commitf8a9b81f106b8e37893d643f93458195702c6c98 (patch)
tree5987cd2349406a6d61e282fc95335690c478312c
parent1f0b1322e0f2233122f67a86c3181f08c633e06c (diff)
downloadgcc-f8a9b81f106b8e37893d643f93458195702c6c98.zip
gcc-f8a9b81f106b8e37893d643f93458195702c6c98.tar.gz
gcc-f8a9b81f106b8e37893d643f93458195702c6c98.tar.bz2
trans.c (elaborate_all_entities_for_package): Also do not elaborate Itypes.
* gcc-interface/trans.c (elaborate_all_entities_for_package): Also do not elaborate Itypes. From-SVN: r237129
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/gcc-interface/trans.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 92292be..5ffc248 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,5 +1,10 @@
2016-06-06 Eric Botcazou <ebotcazou@adacore.com>
+ * gcc-interface/trans.c (elaborate_all_entities_for_package): Also do
+ not elaborate Itypes.
+
+2016-06-06 Eric Botcazou <ebotcazou@adacore.com>
+
* gcc-interface/utils.c (gnat_internal_attribute_table): Add support
for noinline and noclone attributes.
(handle_noinline_attribute): New handler.
diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c
index c08be54..fb17cb2 100644
--- a/gcc/ada/gcc-interface/trans.c
+++ b/gcc/ada/gcc-interface/trans.c
@@ -8460,6 +8460,8 @@ elaborate_all_entities_for_package (Entity_Id gnat_package)
continue;
if (IN (kind, Subprogram_Kind) && Is_Intrinsic_Subprogram (gnat_entity))
continue;
+ if (Is_Itype (gnat_entity))
+ continue;
/* Skip named numbers. */
if (IN (kind, Named_Kind))