Commit 612c5336 by Doug Rupp Committed by Arnaud Charlet

2008-05-27 Doug Rupp <rupp@adacore.com>

	* exp_ch6.adb:
	(Expand_N_Function_Call): Fix comments. Minor reformatting.

	* exp_vfpt.ads:
	(Expand_Vax_Foreign_Return): Fix comments.

From-SVN: r135983
parent f6e8d321
...@@ -3965,17 +3965,17 @@ package body Exp_Ch6 is ...@@ -3965,17 +3965,17 @@ package body Exp_Ch6 is
begin begin
Expand_Call (N); Expand_Call (N);
-- Handle VAX Float return values from foreign compiled functions -- If the return value of a foreign compiled function is
-- VAX Float then expand the return (adjusts the location
-- More commments required here, what are the tests below for ??? -- of the return value on Alpha/VMS, noop everywere else).
-- Comes_From_Source intercepts recursive expansion.
if Vax_Float (Etype (N)) if Vax_Float (Etype (N))
and then Nkind (N) = N_Function_Call 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 (Name (N))
and then Present (Entity (Name (N))) and then Present (Entity (Name (N)))
and then Has_Foreign_Convention (Entity (Name (N))) and then Has_Foreign_Convention (Entity (Name (N)))
and then Comes_From_Source (Parent (N))
then then
Expand_Vax_Foreign_Return (N); Expand_Vax_Foreign_Return (N);
end if; end if;
......
...@@ -47,9 +47,9 @@ package Exp_VFpt is ...@@ -47,9 +47,9 @@ package Exp_VFpt is
procedure Expand_Vax_Foreign_Return (N : Node_Id); procedure Expand_Vax_Foreign_Return (N : Node_Id);
-- The node N is a call to a foreign function that returns a Vax float -- The node N is a call to a foreign function that returns a Vax float
-- value in a floating point register. -- value in a floating point register. Wraps the call in an asm stub
-- Yes, but what does it do??? there is no hint anywhere in the spec or -- that moves the return value to an integer location on Alpha/VMS,
-- body comments, need full spec here ??? -- noop everywhere else.
procedure Expand_Vax_Real_Literal (N : Node_Id); procedure Expand_Vax_Real_Literal (N : Node_Id);
-- The node N is a real literal node where the type is a Vax floating-point -- The node N is a real literal node where the type is a Vax floating-point
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment