aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/back_end.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-06-13 11:38:29 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-06-13 11:38:29 +0200
commit28bc33232d59072bc16ee35f5677820b455edfcd (patch)
treed434ad3c8743b3c579c8f5ce36984de47a3e600f /gcc/ada/back_end.adb
parentca6cbdca8a7223e9b7ed828306b09f80db92fdb7 (diff)
downloadgcc-28bc33232d59072bc16ee35f5677820b455edfcd.zip
gcc-28bc33232d59072bc16ee35f5677820b455edfcd.tar.gz
gcc-28bc33232d59072bc16ee35f5677820b455edfcd.tar.bz2
[multiple changes]
2014-06-13 Robert Dewar <dewar@adacore.com> * back_end.adb (Make_Id): New function. (Make_SC): New function. (Set_RND): New procedure. * back_end.ads (Make_Id): New function. (Make_SC): New function. (Set_RND): New procedure. * einfo.ads: Minor comment updates. * frontend.adb: Move Atree.Initialize call to Gnat1drv. * gnat1drv.adb (Gnat1drv): New calling sequence for Get_Target_Parameters. (Gnat1drv): Move Atree.Initialize here from Frontend. * targparm.adb (Get_Target_Parameters): New calling sequence (Get_Target_Parameters): Handle pragma Restriction (No_Dependence,..) * targparm.ads (Get_Target_Parameters): New calling sequence. 2014-06-13 Gary Dismukes <dismukes@adacore.com> * sem_prag.adb (Process_Import_Or_Interface): Exit the homonym loop if the pragma does not come from source, so that an implicit pragma Import only applies to the first declaration, avoiding possible conflicts with earlier explicit and implicit declarations due to multiple Provide_Shift_Operators pragmas. (Set_Imported): Remove previous fix that bypassed pragma duplication error. * gnat_rm.texi: Change 'equivalent' to 'similar' in description of Provide_Shift_Operators. From-SVN: r211610
Diffstat (limited to 'gcc/ada/back_end.adb')
-rw-r--r--gcc/ada/back_end.adb57
1 files changed, 49 insertions, 8 deletions
diff --git a/gcc/ada/back_end.adb b/gcc/ada/back_end.adb
index bb442ad..6c763ce 100644
--- a/gcc/ada/back_end.adb
+++ b/gcc/ada/back_end.adb
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright (C) 1992-2013, Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2014, 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- --
@@ -24,6 +24,7 @@
------------------------------------------------------------------------------
with Atree; use Atree;
+with Csets; use Csets;
with Debug; use Debug;
with Elists; use Elists;
with Errout; use Errout;
@@ -33,13 +34,14 @@ with Opt; use Opt;
with Osint.C; use Osint.C;
with Namet; use Namet;
with Nlists; use Nlists;
+with Nmake; use Nmake;
+with Restrict; use Restrict;
with Stand; use Stand;
with Sinput; use Sinput;
with Stringt; use Stringt;
with Switch; use Switch;
with Switch.C; use Switch.C;
with System; use System;
-with Types; use Types;
with System.OS_Lib; use System.OS_Lib;
@@ -163,6 +165,15 @@ package body Back_End is
gigi_operating_mode => Mode);
end Call_Back_End;
+ -------------------------------
+ -- Gen_Or_Update_Object_File --
+ -------------------------------
+
+ procedure Gen_Or_Update_Object_File is
+ begin
+ null;
+ end Gen_Or_Update_Object_File;
+
-------------
-- Len_Arg --
-------------
@@ -178,6 +189,36 @@ package body Back_End is
raise Program_Error;
end Len_Arg;
+ -------------
+ -- Make_Id --
+ -------------
+
+ function Make_Id (Str : Text_Buffer) return Node_Id is
+ begin
+ Name_Len := 0;
+
+ for J in Str'Range loop
+ Name_Len := Name_Len + 1;
+ Name_Buffer (Name_Len) := Fold_Lower (Str (J));
+ end loop;
+
+ return
+ Make_Identifier (System_Location,
+ Chars => Name_Find);
+ end Make_Id;
+
+ -------------
+ -- Make_SC --
+ -------------
+
+ function Make_SC (Pre, Sel : Node_Id) return Node_Id is
+ begin
+ return
+ Make_Selected_Component (System_Location,
+ Prefix => Pre,
+ Selector_Name => Sel);
+ end Make_SC;
+
-----------------------------
-- Scan_Compiler_Arguments --
-----------------------------
@@ -342,13 +383,13 @@ package body Back_End is
end loop;
end Scan_Compiler_Arguments;
- -------------------------------
- -- Gen_Or_Update_Object_File --
- -------------------------------
+ -------------
+ -- Set_RND --
+ -------------
- procedure Gen_Or_Update_Object_File is
+ procedure Set_RND (Unit : Node_Id) is
begin
- null;
- end Gen_Or_Update_Object_File;
+ Restrict.Set_Restriction_No_Dependence (Unit, Warn => False);
+ end Set_RND;
end Back_End;