aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sprint.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-16 16:47:48 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-16 16:47:48 +0200
commit2ffcbaa5969ea7f6ae55877df1b859f1369fdc2b (patch)
tree986540adb019104d65f347f7c6f5f44ec53d2c94 /gcc/ada/sprint.adb
parent76241f8f2445434f7e9430d9bb4ccb97f253f96e (diff)
downloadgcc-2ffcbaa5969ea7f6ae55877df1b859f1369fdc2b.zip
gcc-2ffcbaa5969ea7f6ae55877df1b859f1369fdc2b.tar.gz
gcc-2ffcbaa5969ea7f6ae55877df1b859f1369fdc2b.tar.bz2
[multiple changes]
2014-07-16 Ed Schonberg <schonberg@adacore.com> * sem_ch3.adb (Find_Type_Name): Diagnose properly a private extension completion that is an interface definition with an interface list. 2014-07-16 Arnaud Charlet <charlet@adacore.com> * gnatls.adb (Gnatls): Code clean ups. 2014-07-16 Thomas Quinot <quinot@adacore.com> * sinfo.ads, sinfo.adb (N_Compound_Statement): New node kind. * sem.adb (Analyze): Handle N_Compound_Statement. * sprint.adb (Sprint_Node_Actual): Ditto. * sem_ch5.ads, sem_ch5.adb (Analyze_Compound_Statement): New procedure to handle N_Compound_Statement. * exp_aggr.adb (Collect_Initialization_Statements): Use a proper compound statement node, instead of a bogus expression-with-actions with a NULL statement as its expression, to wrap collected initialization statements. * freeze.ads, freeze.adb (Explode_Initialization_Compound_Statement): New public procedure, lifted from Freeze_Entity. (Freeze_Entity): When freezing an object with captured initialization statements and without delayed freezing, explode compount statement. * sem_ch4.adb (Analyze_Expression_With_Actions): Remove special case that used to handle bogus EWAs with NULL statement as the expression. * exp_ch13.adb (Expand_N_Freeze_Entity): For an object with delayed freezing and captured initialization statements, explode compound statement. From-SVN: r212662
Diffstat (limited to 'gcc/ada/sprint.adb')
-rw-r--r--gcc/ada/sprint.adb9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ada/sprint.adb b/gcc/ada/sprint.adb
index 49adb11..ec7f4ca 100644
--- a/gcc/ada/sprint.adb
+++ b/gcc/ada/sprint.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- --
@@ -1326,6 +1326,13 @@ package body Sprint is
Sprint_Node (Variant_Part (Node));
end if;
+ when N_Compound_Statement =>
+ Write_Indent_Str ("do");
+ Indent_Begin;
+ Sprint_Node_List (Actions (Node));
+ Indent_End;
+ Write_Indent_Str ("end;");
+
when N_Conditional_Entry_Call =>
Write_Indent_Str_Sloc ("select");
Indent_Begin;