summaryrefslogtreecommitdiff
path: root/gcc/ada/treepr.adb
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-25 15:18:38 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2014-02-25 15:18:38 +0000
commit86d32751c892c00803ee5f7b2b4956828c5f72fd (patch)
treea81062ae0baf3aa2bb0c6da8826d7061c88ae465 /gcc/ada/treepr.adb
parentaf6f2cb79134ace14b22612ac5a0669917ddf83a (diff)
downloadgcc-86d32751c892c00803ee5f7b2b4956828c5f72fd.tar.gz
2014-02-25 Robert Dewar <dewar@adacore.com>
* einfo.ads, einfo.adb (Has_Shift_Operator): New flag. * gnat_rm.texi: Document pragma Provide_Shift_Operators. * interfac.ads: Minor code reorganization (add pragma Compiler_Unit_Warning). * par-prag.adb: Add dummy entry for Provide_Shift_Operators. * sem_ch3.adb (Build_Derived_Numeric_Type): Copy Has_Shift_Operator flag. * sem_intr.adb (Check_Intrinsic_Subprogram): Make sure Check_Shift is always called (Check_Shift): Set Has_Shift_Operator. * sem_prag.adb: Implement pragma Provide_Shift_Operators. * snames.ads-tmpl: Add entries for pragma Provide_Shift_Operators Add entry for Name_Amount. * checks.adb (Selected_Range_Checks): When checking for a null range, make sure we use the base type, and not the subtype for deciding a range is null. * sem_ch5.adb (Analyze_Loop_Parameter_Specification): Check for suspicious loop bound which is outside the range of the loop subtype. * gnat_ugn.texi: Add documentation section "Determining the Chosen Elaboration Order" * sem_ch13.adb (UC_Entry): Add field Act_Unit (Validate_Unchecked_Conversion): Store Act_Unit (Validate_Unchecked_Conversions): Test Warnings_Off in Act_Unit * treepr.adb: Minor reformatting. 2014-02-25 Arnaud Charlet <charlet@adacore.com> * usage.adb: Minor: fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208138 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/treepr.adb')
-rw-r--r--gcc/ada/treepr.adb27
1 files changed, 13 insertions, 14 deletions
diff --git a/gcc/ada/treepr.adb b/gcc/ada/treepr.adb
index 0bfc6e3dab3..0cce75f9aa2 100644
--- a/gcc/ada/treepr.adb
+++ b/gcc/ada/treepr.adb
@@ -1701,7 +1701,6 @@ package body Treepr is
Print_Node_Subtree (Cunit (Main_Unit));
Write_Eol;
end if;
-
end Tree_Dump;
-----------------
@@ -1956,13 +1955,13 @@ package body Treepr is
then
return;
- -- Otherwise we can visit the list. Note that we don't bother
- -- to do the parent test that we did for the node case, because
- -- it just does not happen that lists are referenced more than
- -- one place in the tree. We aren't counting on this being the
- -- case to generate valid output, it is just that we don't need
- -- in practice to worry about listing the list at a place that
- -- is inconvenient.
+ -- Otherwise we can visit the list. Note that we don't bother to
+ -- do the parent test that we did for the node case, because it
+ -- just does not happen that lists are referenced more than one
+ -- place in the tree. We aren't counting on this being the case
+ -- to generate valid output, it is just that we don't need in
+ -- practice to worry about listing the list at a place that is
+ -- inconvenient.
else
Visit_List (List_Id (D), New_Prefix);
@@ -2024,9 +2023,9 @@ package body Treepr is
else
if Serial_Number (Int (N)) < Next_Serial_Number then
- -- Here we have already visited the node, but if it is in
- -- a list, we still want to print the reference, so that
- -- it is clear that it belongs to the list.
+ -- Here we have already visited the node, but if it is in a list,
+ -- we still want to print the reference, so that it is clear that
+ -- it belongs to the list.
if Is_List_Member (N) then
Print_Str (Prefix_Str);
@@ -2109,9 +2108,9 @@ package body Treepr is
-- indentations coming from this effect.
-- To prevent this, what we do is to control references via
- -- Next_Entity only from the first entity on a given scope
- -- chain, and we keep them all at the same level. Of course
- -- if an entity has already been referenced it is not printed.
+ -- Next_Entity only from the first entity on a given scope chain,
+ -- and we keep them all at the same level. Of course if an entity
+ -- has already been referenced it is not printed.
if Present (Next_Entity (N))
and then Present (Scope (N))