aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/snames.adb-tmpl
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2012-07-09 15:27:22 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2012-07-09 15:27:22 +0200
commitc1107fa376b716f93c9c6f349bb46e1e767d41d6 (patch)
tree3116306d0d98adfdfd391185637bd4a43a7a293d /gcc/ada/snames.adb-tmpl
parentd27f3ff4c3165d5decf103e63336095730745f82 (diff)
downloadgcc-c1107fa376b716f93c9c6f349bb46e1e767d41d6.zip
gcc-c1107fa376b716f93c9c6f349bb46e1e767d41d6.tar.gz
gcc-c1107fa376b716f93c9c6f349bb46e1e767d41d6.tar.bz2
[multiple changes]
2012-07-09 Vincent Pucci <pucci@adacore.com> * sem_ch9.adb (Check_Node): Allow attributes that denote static function for lock-free implementation. (Is_Static_Function): New routine. 2012-07-09 Tristan Gingold <gingold@adacore.com> * tracebak.c: Adjust skip_frames on Win64. 2012-07-09 Tristan Gingold <gingold@adacore.com> * init.c: Add __gnat_adjust_context_for_raise for ia64/hpux. * raise-gcc.c: __gnat_cleanupunwind_handler: Do not call _Unwind_GetGR on hpux when using libgcc unwinder. Part of 2012-07-09 Vincent Pucci <pucci@adacore.com> * exp_attr.adb, sem_attr.adb: Minor reformatting. * par-ch13.adb, par-ch4.adb, par-util.adb: Reformatting considering that internal attribute names are not defined anymore in the main attribute names list. * snames.adb-tmpl (Get_Attribute_Id): Special processinf for names CPU, Dispatching_Domain and Interrupt_Priority. (Is_Internal_Attribute_Name): Minor reformatting. * snames.ads-tmpl: New list of internal attribute names. Internal attributes moved at the end of the attribute Id list. From-SVN: r189380
Diffstat (limited to 'gcc/ada/snames.adb-tmpl')
-rw-r--r--gcc/ada/snames.adb-tmpl14
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ada/snames.adb-tmpl b/gcc/ada/snames.adb-tmpl
index 3a22750..05d4277 100644
--- a/gcc/ada/snames.adb-tmpl
+++ b/gcc/ada/snames.adb-tmpl
@@ -127,7 +127,15 @@ package body Snames is
function Get_Attribute_Id (N : Name_Id) return Attribute_Id is
begin
- return Attribute_Id'Val (N - First_Attribute_Name);
+ if N = Name_CPU then
+ return Attribute_CPU;
+ elsif N = Name_Dispatching_Domain then
+ return Attribute_Dispatching_Domain;
+ elsif N = Name_Interrupt_Priority then
+ return Attribute_Interrupt_Priority;
+ else
+ return Attribute_Id'Val (N - First_Attribute_Name);
+ end if;
end Get_Attribute_Id;
-----------------------
@@ -399,9 +407,7 @@ package body Snames is
function Is_Internal_Attribute_Name (N : Name_Id) return Boolean is
begin
return
- N = Name_CPU or else
- N = Name_Interrupt_Priority or else
- N = Name_Dispatching_Domain;
+ N in First_Internal_Attribute_Name .. Last_Internal_Attribute_Name;
end Is_Internal_Attribute_Name;
----------------------------