diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2012-06-14 12:49:59 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2012-06-14 12:49:59 +0200 |
commit | 2a290fec3d61859b69f865d1769f4e11ac1c3dc8 (patch) | |
tree | faeb8bf3d0b97c831e30b175c8171f08f0d0f8a7 /gcc/ada/sem.adb | |
parent | 758ad97333838b7e5e839100a927b6cadbd030d3 (diff) | |
download | gcc-2a290fec3d61859b69f865d1769f4e11ac1c3dc8.zip gcc-2a290fec3d61859b69f865d1769f4e11ac1c3dc8.tar.gz gcc-2a290fec3d61859b69f865d1769f4e11ac1c3dc8.tar.bz2 |
[multiple changes]
2012-06-14 Robert Dewar <dewar@adacore.com>
* exp_ch7.adb, exp_util.adb, sem_aux.ads, exp_ch9.adb,
sem_ch10.adb, freeze.adb, sem_util.adb, exp_ch4.adb,
s-taprop-dummy.adb: Minor reformatting.
2012-06-14 Vincent Pucci <pucci@adacore.com>
* exp_attr.adb (Expand_N_Attribute_Reference): Lock_Free
attribute case added.
* par-prag.adb (Prag): Lock_Free pragma case added.
* sem_attr.adb (Analyze_Attribute_Reference): Lock_Free attribute
case added.
* sem_ch13.adb (Analyze_Aspect_Specifications): Record_Rep_Item
call added for Aspect_Lock_Free.
* sem_ch9.adb (Allows_Lock_Free_Implementation): New Lock_Free
error messages for subprogram bodies.
(Lock_Free_Disabled): New routine.
(Analyze_Protected_Body): Call to Lock_Free_Disabled added.
* sem_prag.adb (Analyze_Pragma): Lock_Free pragma case added.
* snames.adb-tmpl (Get_Pragma_Id): Name_Lock_Free case added.
(Is_Pragma_Name): Name_Lock_Free case added.
* snames.ads-tmpl: Attribute_Lock_Free and Pragma_Lock_Free added.
2012-06-14 Ed Schonberg <schonberg@adacore.com>
* a-coorma.adb, a-cborma.adb, a-cbhama.adb, a-ciorma.adb: Add missing
aliased keyword.
2012-06-14 Bob Duff <duff@adacore.com>
* lib.ads, lib.adb, sem.adb (Write_Unit_Info): Move this
procedure from Sem body to Lib spec, so it can be used for
debugging elsewhere.
2012-06-14 Ed Schonberg <schonberg@adacore.com>
* sem_ch6.adb (Check_Conformance): Add Ada 2012 check on mode
conformance: "aliased" must apply to both or neither formal
parameters.
From-SVN: r188609
Diffstat (limited to 'gcc/ada/sem.adb')
-rw-r--r-- | gcc/ada/sem.adb | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/gcc/ada/sem.adb b/gcc/ada/sem.adb index 503d1f4..352665a 100644 --- a/gcc/ada/sem.adb +++ b/gcc/ada/sem.adb @@ -91,15 +91,6 @@ package body Sem is -- of this unit, since they count as dependences on their parent library -- item. CU must be an N_Compilation_Unit whose Unit is not an N_Subunit. - procedure Write_Unit_Info - (Unit_Num : Unit_Number_Type; - Item : Node_Id; - Prefix : String := ""; - Withs : Boolean := False); - -- Print out debugging information about the unit. Prefix precedes the rest - -- of the printout. If Withs is True, we print out units with'ed by this - -- unit (not counting limited withs). - ------------- -- Analyze -- ------------- @@ -2290,82 +2281,4 @@ package body Sem is end loop; end Walk_Withs_Immediate; - --------------------- - -- Write_Unit_Info -- - --------------------- - - procedure Write_Unit_Info - (Unit_Num : Unit_Number_Type; - Item : Node_Id; - Prefix : String := ""; - Withs : Boolean := False) - is - begin - Write_Str (Prefix); - Write_Unit_Name (Unit_Name (Unit_Num)); - Write_Str (", unit "); - Write_Int (Int (Unit_Num)); - Write_Str (", "); - Write_Int (Int (Item)); - Write_Str ("="); - Write_Str (Node_Kind'Image (Nkind (Item))); - - if Item /= Original_Node (Item) then - Write_Str (", orig = "); - Write_Int (Int (Original_Node (Item))); - Write_Str ("="); - Write_Str (Node_Kind'Image (Nkind (Original_Node (Item)))); - end if; - - Write_Eol; - - -- Skip the rest if we're not supposed to print the withs - - if not Withs then - return; - end if; - - declare - Context_Item : Node_Id; - - begin - Context_Item := First (Context_Items (Cunit (Unit_Num))); - while Present (Context_Item) - and then (Nkind (Context_Item) /= N_With_Clause - or else Limited_Present (Context_Item)) - loop - Context_Item := Next (Context_Item); - end loop; - - if Present (Context_Item) then - Indent; - Write_Line ("withs:"); - Indent; - - while Present (Context_Item) loop - if Nkind (Context_Item) = N_With_Clause - and then not Limited_Present (Context_Item) - then - pragma Assert (Present (Library_Unit (Context_Item))); - Write_Unit_Name - (Unit_Name - (Get_Cunit_Unit_Number (Library_Unit (Context_Item)))); - - if Implicit_With (Context_Item) then - Write_Str (" -- implicit"); - end if; - - Write_Eol; - end if; - - Context_Item := Next (Context_Item); - end loop; - - Outdent; - Write_Line ("end withs"); - Outdent; - end if; - end; - end Write_Unit_Info; - end Sem; |