aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/namet.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2017-01-13 11:24:28 +0100
committerArnaud Charlet <charlet@gcc.gnu.org>2017-01-13 11:24:28 +0100
commitda9683f4dbc85066c290798a14d1158f804f92a2 (patch)
treec30d14feaa65425fda4394198a472a663338db04 /gcc/ada/namet.adb
parent3de3a1be9ee8c46efce3714cbbecaae0c7efe3f0 (diff)
downloadgcc-da9683f4dbc85066c290798a14d1158f804f92a2.zip
gcc-da9683f4dbc85066c290798a14d1158f804f92a2.tar.gz
gcc-da9683f4dbc85066c290798a14d1158f804f92a2.tar.bz2
[multiple changes]
2017-01-13 Yannick Moy <moy@adacore.com> * inline.adb (Remove_Aspects_And_Pragmas): Add Unused to the list of pragmas to remove. Remove pragmas from the list of statements in the body to inline. * namet.adb, namet.ads (Nam_In): New version with 12 parameters. 2017-01-13 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Resolve_Aspects): New procedure, subsidiary of Analyze_Declarations, to analyze and resolve the expressions of aspect specifications in the current declarative list, so that the expressions have proper entity and type info. This is needed for ASIS when there is no subsequent expansion to generate this semantic information. * sem_ch13.adb (Check_Aspect_At_End_Of_Declarations): Use Etype of original expression, to suppress cascaded errors when expression has been constant-folded. (Resolve_Aspect_Expressions, Resolve_Name): Preserve entities in ASIS mode, because there is no subsequent expansion to decorate the tree. From-SVN: r244409
Diffstat (limited to 'gcc/ada/namet.adb')
-rw-r--r--gcc/ada/namet.adb32
1 files changed, 31 insertions, 1 deletions
diff --git a/gcc/ada/namet.adb b/gcc/ada/namet.adb
index 520ce6a..1fdc37c 100644
--- a/gcc/ada/namet.adb
+++ b/gcc/ada/namet.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2015, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2016, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -1435,6 +1435,36 @@ package body Namet is
T = V11;
end Nam_In;
+ function Nam_In
+ (T : Name_Id;
+ V1 : Name_Id;
+ V2 : Name_Id;
+ V3 : Name_Id;
+ V4 : Name_Id;
+ V5 : Name_Id;
+ V6 : Name_Id;
+ V7 : Name_Id;
+ V8 : Name_Id;
+ V9 : Name_Id;
+ V10 : Name_Id;
+ V11 : Name_Id;
+ V12 : Name_Id) return Boolean
+ is
+ begin
+ return T = V1 or else
+ T = V2 or else
+ T = V3 or else
+ T = V4 or else
+ T = V5 or else
+ T = V6 or else
+ T = V7 or else
+ T = V8 or else
+ T = V9 or else
+ T = V10 or else
+ T = V11 or else
+ T = V12;
+ end Nam_In;
+
-----------------
-- Name_Equals --
-----------------