aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_disp.ads
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-09-16 14:25:44 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-09-16 14:25:44 +0200
commitbac7206de028db55def3c7ec5c9b21169bb2fc20 (patch)
tree8b23d75781efef9f8cfad1896c1183b94134f9a9 /gcc/ada/exp_disp.ads
parentf5bb1134c9e0974a05ed7533c82efa3861cff27c (diff)
downloadgcc-bac7206de028db55def3c7ec5c9b21169bb2fc20.zip
gcc-bac7206de028db55def3c7ec5c9b21169bb2fc20.tar.gz
gcc-bac7206de028db55def3c7ec5c9b21169bb2fc20.tar.bz2
[multiple changes]
2009-09-16 Vincent Celier <celier@adacore.com> * gprep.adb (Yes_No): New global constant Unix_Line_Terminators: New global Boolean variable (Process_One_File): Create the out file with a "Text_Translation=" form that depends on the use of option -T. (Scan_Command_Line): Add option -T (Usage): Add line for option -T 2009-09-16 Ed Schonberg <schonberg@adacore.com> * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New predicate that describes a proper subset of Is_Predefined_Dispatching_Operation and excludes stream operations, which can be overridden by the user. * sem_ch6.adb (Create_Extra_Formals): use Is_Predefined_Internal_Operation, so that stream operations get extra formals. * exp_ch6.adb (Prevent double generation of extra actuals in calls to 'Input, which may be expanded twice, first as a function call and then as a dispatching call. From-SVN: r151748
Diffstat (limited to 'gcc/ada/exp_disp.ads')
-rw-r--r--gcc/ada/exp_disp.ads5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ada/exp_disp.ads b/gcc/ada/exp_disp.ads
index 18f751d..4aea2ca 100644
--- a/gcc/ada/exp_disp.ads
+++ b/gcc/ada/exp_disp.ads
@@ -218,6 +218,11 @@ package Exp_Disp is
function Is_Predefined_Dispatching_Operation (E : Entity_Id) return Boolean;
-- Ada 2005 (AI-251): Determines if E is a predefined primitive operation
+ function Is_Predefined_Internal_Operation (E : Entity_Id) return Boolean;
+ -- Similar to the previous one, but excludes stream operations, because
+ -- these may be overridden, and need extra formals, like user-defined
+ -- operations.
+
function Is_Predefined_Interface_Primitive (E : Entity_Id) return Boolean;
-- Ada 2005 (AI-345): Returns True if E is one of the predefined primitives
-- required to implement interfaces.