aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sem_util.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 15:41:04 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2017-04-25 15:41:04 +0200
commitbf604a5eeb4b942348e8f1cdaf4baf6d77497aec (patch)
tree3c50c75a81069576fb48b9af44f1bf9960bb974f /gcc/ada/sem_util.ads
parent178c3cba2df14a093537dbd9ffbf639510bd5b55 (diff)
downloadgcc-bf604a5eeb4b942348e8f1cdaf4baf6d77497aec.zip
gcc-bf604a5eeb4b942348e8f1cdaf4baf6d77497aec.tar.gz
gcc-bf604a5eeb4b942348e8f1cdaf4baf6d77497aec.tar.bz2
[multiple changes]
2017-04-25 Hristian Kirtchev <kirtchev@adacore.com> * exp_util.adb (Known_Non_Null): Moved to Sem_Util. (Known_Null): Moved to Sem_Util. * exp_util.ads (Known_Non_Null): Moved to Sem_Util. (Known_Null): Moved to Sem_Util. * sem_util.adb Add new enumeration type Null_Status_Kind. (Known_Non_Null): Moved from Exp_Util. Most of the logic in this routine is now carried out by Null_Status. (Known_Null): Moved from Exp_Util. Most of the logic in this routine is now carried out by Null_Status. (Null_Status): New routine. * sem_util.ads (Known_Non_Null): Moved from Exp_Util. (Known_Null): Moved from Exp_Util. 2017-04-25 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Expression_Function): Do not report an error on the return type of an expression function that is a completion, if the type is derived from a generic formal type. 2017-04-25 Ed Schonberg <schonberg@adacore.com> * sem_dim.adb (Dimensions_Of_Operand): The dimensions of a type conversion are those of the target type. 2017-04-25 Bob Duff <duff@adacore.com> * a-clrefi.adb: Minor cleanup. From-SVN: r247236
Diffstat (limited to 'gcc/ada/sem_util.ads')
-rw-r--r--gcc/ada/sem_util.ads12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
index c8a484d..2b6a362 100644
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -1889,6 +1889,18 @@ package Sem_Util is
-- present, this size check code is killed, since the object will not be
-- allocated by the program.
+ function Known_Non_Null (N : Node_Id) return Boolean;
+ -- Given a node N for a subexpression of an access type, determines if
+ -- this subexpression yields a value that is known at compile time to
+ -- be non-null and returns True if so. Returns False otherwise. It is
+ -- an error to call this function if N is not of an access type.
+
+ function Known_Null (N : Node_Id) return Boolean;
+ -- Given a node N for a subexpression of an access type, determines if this
+ -- subexpression yields a value that is known at compile time to be null
+ -- and returns True if so. Returns False otherwise. It is an error to call
+ -- this function if N is not of an access type.
+
function Known_To_Be_Assigned (N : Node_Id) return Boolean;
-- The node N is an entity reference. This function determines whether the
-- reference is for sure an assignment of the entity, returning True if