diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2016-04-20 12:29:26 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2016-04-20 12:29:26 +0200 |
commit | 06f6c43f5c0d8df09010ec690b237bc62e3b6d02 (patch) | |
tree | 6433e0665b407b38446a2221561cc9a01bea3309 /gcc/ada/sinfo.ads | |
parent | 71129dded17e960ee8fdfa2397e1eadee2568129 (diff) | |
download | gcc-06f6c43f5c0d8df09010ec690b237bc62e3b6d02.zip gcc-06f6c43f5c0d8df09010ec690b237bc62e3b6d02.tar.gz gcc-06f6c43f5c0d8df09010ec690b237bc62e3b6d02.tar.bz2 |
[multiple changes]
2016-04-20 Hristian Kirtchev <kirtchev@adacore.com>
* sem_ch12.adb (Copy_Generic_Node): Handle the special
qualification installed for universal literals that act as
operands in binary or unary operators. (Qualify_Operand): Mark
the qualification to signal the instantiation mechanism how to
handle global reference propagation.
* sinfo.adb (Is_Qualified_Universal_Literal): New routine.
(Set_Is_Qualified_Universal_Literal): New routine.
* sinfo.ads New attribute Is_Qualified_Universal_Literal along
with occurrences in nodes.
(Is_Qualified_Universal_Literal):
New routine along with pragma Inline.
(Set_Is_Qualified_Universal_Literal): New routine along with
pragma Inline.
2016-04-20 Ed Schonberg <schonberg@adacore.com>
* sem.adb (Do_Analyze): Save and restore Style_Max_Line_Length
so that the corresponding checks are preserved across compilations
that include System.Constants in their context.
2016-04-20 Gary Dismukes <dismukes@adacore.com>
* sem_type.adb: Minor typo fix and reformatting.
* a-conhel.ads: Update comment.
2016-04-20 Bob Duff <duff@adacore.com>
* a-cihama.adb, a-cihase.adb, a-coinve.adb (Copy): Rewrite the
code so it doesn't trigger an "uninit var" warning.
From-SVN: r235256
Diffstat (limited to 'gcc/ada/sinfo.ads')
-rw-r--r-- | gcc/ada/sinfo.ads | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ada/sinfo.ads b/gcc/ada/sinfo.ads index f86eea3..561c112 100644 --- a/gcc/ada/sinfo.ads +++ b/gcc/ada/sinfo.ads @@ -1710,6 +1710,12 @@ package Sinfo is -- handler to make sure that the associated protected object is unlocked -- when the subprogram completes. + -- Is_Qualified_Universal_Literal (Flag4-Sem) + -- Present in N_Qualified_Expression nodes. Set when the qualification is + -- converting a universal literal to a specific type. Such qualifiers aid + -- the resolution of accidental overloading of binary or unary operators + -- which may occur in instances. + -- Is_Static_Coextension (Flag14-Sem) -- Present in N_Allocator nodes. Set if the allocator is a coextension -- of an object allocated on the stack rather than the heap. @@ -4542,6 +4548,7 @@ package Sinfo is -- Subtype_Mark (Node4) -- Expression (Node3) expression or aggregate -- plus fields for expression + -- Is_Qualified_Universal_Literal (Flag4-Sem) -------------------- -- 4.8 Allocator -- @@ -9399,6 +9406,9 @@ package Sinfo is function Is_Protected_Subprogram_Body (N : Node_Id) return Boolean; -- Flag7 + function Is_Qualified_Universal_Literal + (N : Node_Id) return Boolean; -- Flag4 + function Is_Static_Coextension (N : Node_Id) return Boolean; -- Flag14 @@ -10437,6 +10447,9 @@ package Sinfo is procedure Set_Is_Protected_Subprogram_Body (N : Node_Id; Val : Boolean := True); -- Flag7 + procedure Set_Is_Qualified_Universal_Literal + (N : Node_Id; Val : Boolean := True); -- Flag4 + procedure Set_Is_Static_Coextension (N : Node_Id; Val : Boolean := True); -- Flag14 @@ -12819,6 +12832,7 @@ package Sinfo is pragma Inline (Is_Power_Of_2_For_Shift); pragma Inline (Is_Prefixed_Call); pragma Inline (Is_Protected_Subprogram_Body); + pragma Inline (Is_Qualified_Universal_Literal); pragma Inline (Is_Static_Coextension); pragma Inline (Is_Static_Expression); pragma Inline (Is_Subprogram_Descriptor); @@ -13160,6 +13174,7 @@ package Sinfo is pragma Inline (Set_Is_Power_Of_2_For_Shift); pragma Inline (Set_Is_Prefixed_Call); pragma Inline (Set_Is_Protected_Subprogram_Body); + pragma Inline (Set_Is_Qualified_Universal_Literal); pragma Inline (Set_Is_Static_Coextension); pragma Inline (Set_Is_Static_Expression); pragma Inline (Set_Is_Subprogram_Descriptor); |