summaryrefslogtreecommitdiff
path: root/gcc/ada/exp_disp.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-16 12:25:44 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-16 12:25:44 +0000
commitd1458a078b591fdce9694da6e19bdb85ba74c97a (patch)
tree8b23d75781efef9f8cfad1896c1183b94134f9a9 /gcc/ada/exp_disp.ads
parent920e81b88b1b92be9746a2ab36dea4fce7157c1a (diff)
downloadgcc-d1458a078b591fdce9694da6e19bdb85ba74c97a.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151748 138bc75d-0d04-0410-961f-82ee72b054a4
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 18f751d978d..4aea2ca1e65 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.