begin
Expand_Call (N);
- -- Handle VAX Float return values from foreign compiled functions
-
- -- More commments required here, what are the tests below for ???
+ -- If the return value of a foreign compiled function is
+ -- VAX Float then expand the return (adjusts the location
+ -- of the return value on Alpha/VMS, noop everywere else).
+ -- Comes_From_Source intercepts recursive expansion.
if Vax_Float (Etype (N))
and then Nkind (N) = N_Function_Call
- and then not (Nkind (Parent (N)) = N_Type_Conversion
- and then not Comes_From_Source (Parent (N)))
and then Present (Name (N))
and then Present (Entity (Name (N)))
and then Has_Foreign_Convention (Entity (Name (N)))
+ and then Comes_From_Source (Parent (N))
then
Expand_Vax_Foreign_Return (N);
end if;
procedure Expand_Vax_Foreign_Return (N : Node_Id);
-- The node N is a call to a foreign function that returns a Vax float
- -- value in a floating point register.
- -- Yes, but what does it do??? there is no hint anywhere in the spec or
- -- body comments, need full spec here ???
+ -- value in a floating point register. Wraps the call in an asm stub
+ -- that moves the return value to an integer location on Alpha/VMS,
+ -- noop everywhere else.
procedure Expand_Vax_Real_Literal (N : Node_Id);
-- The node N is a real literal node where the type is a Vax floating-point