diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-08-29 12:02:08 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-08-29 12:02:08 +0200 |
commit | d3cb4cc0df047020719e5eaa3f5be0c17f256f2c (patch) | |
tree | abc00a0f2d80da97f7ea687746ed421e73d91083 /gcc/ada/sprint.adb | |
parent | d3f70b35df36f20ad887de0adc150d0b3dd186cc (diff) | |
download | gcc-d3cb4cc0df047020719e5eaa3f5be0c17f256f2c.zip gcc-d3cb4cc0df047020719e5eaa3f5be0c17f256f2c.tar.gz gcc-d3cb4cc0df047020719e5eaa3f5be0c17f256f2c.tar.bz2 |
[multiple changes]
2011-08-29 Matthew Heaney <heaney@adacore.com>
* a-comutr.adb, a-cimutr.adb, a-cbmutr.adb (Splice_Subtree): Only check
for sibling when common parent.
2011-08-29 Thomas Quinot <quinot@adacore.com>
* get_scos.adb: Literals of Pragma_Id are pragma names prefixed with
"pragma_".
2011-08-29 Ed Schonberg <schonberg@adacore.com>
* sem_ch6.adb (Analyze_Subprogram_Body_Helper): Enable freeze actions
for the return type when in ASIS mode.
2011-08-29 Vincent Celier <celier@adacore.com>
* make.adb (Gnatmake): Get the default search dirs, then the target
parameters after getting the Builder switches, as the Builder switches
may include --RTS= and that could change the default search dirs.
2011-08-29 Hristian Kirtchev <kirtchev@adacore.com>
* exp_ch7.adb (Make_Adjust_Call): Rewrite to mimic the structure of
Make_Final_Call. Move the processing for class-wide types before the
processing for derivations from [Limited_]Controlled.
(Make_Final_Call): Move the processing for class-wide types before the
processing for derivations from [Limited_]Controlled.
* s-stposu.adb (Allocate_Any_Controlled): Correct the membership check.
Add code to account for alignments larger than the list header. Add a
comment illustrating the structure of the allocated object + padding +
header.
(Deallocate_Any_Controlled): Add code to account for alignments larger
than the list header.
2011-08-29 Ed Schonberg <schonberg@adacore.com>
* sinfo.ads, sinfo.adb: New node kind
N_Formal_Incomplete_Type_Definition, related flags.
par-ch12.adb (P_Formal_Type_Declaration, G_Formal_Type_Definition):
Parse formal incomplete types.
* sem.adb (Analyze): Formal_Incomplete_Type_Definitions are handled in
sem_ch12.
* sem_ch7.adb (Analyze_Package_Specification, Unit_Requires_Body):
Formal incomplete types do not need completion.
* sem_ch12.adb (Analyze_Formal_Incomplete_Type,
Validate_Incomplete_Type_Instance): New procedures to handle formal
incomplete types.
* freeze.adb (Freeze_Entity): Do not freeze the subtype of an actual
that corresponds to a formal incomplete type.
* sprint.adb: Handle formal incomplete type declarations.
* exp_util.adb (Insert_Actions): An incomplete_type_definition is not
an insertion point.
From-SVN: r178184
Diffstat (limited to 'gcc/ada/sprint.adb')
-rw-r--r-- | gcc/ada/sprint.adb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ada/sprint.adb b/gcc/ada/sprint.adb index 5c6f329..0ccd8c2 100644 --- a/gcc/ada/sprint.adb +++ b/gcc/ada/sprint.adb @@ -1801,6 +1801,11 @@ package body Sprint is Write_Str_With_Col_Check_Sloc ("private"); + when N_Formal_Incomplete_Type_Definition => + if Tagged_Present (Node) then + Write_Str_With_Col_Check ("is tagged "); + end if; + when N_Formal_Signed_Integer_Type_Definition => Write_Str_With_Col_Check_Sloc ("range <>"); @@ -1814,7 +1819,12 @@ package body Sprint is Write_Str_With_Col_Check ("(<>)"); end if; - Write_Str_With_Col_Check (" is "); + if Nkind (Formal_Type_Definition (Node)) /= + N_Formal_Incomplete_Type_Definition + then + Write_Str_With_Col_Check (" is "); + end if; + Sprint_Node (Formal_Type_Definition (Node)); Write_Char (';'); |