[Ada] New VMS Argument Passing Mechanism Short_Descriptor

Eric Botcazou ebotcazou@adacore.com
Fri Aug 1 14:02:00 GMT 2008


> A new VMS argument passing mechanism Short_Descriptor is introduced for
> passing 32bit descriptors and the default descriptor mechanism is changed
> from 32bits to 64bits for passing arguments to imported subprograms.
> Exported subprograms will now accept either 32bit or 64bit descriptors by
> default, and 32bit descriptors when the Short_Descriptor mechanism is
> specified.

Here's the complete clean-up patch.

Tested on i586-suse-linux, applied on the mainline.


2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
	* gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
	and adjust for above renaming.
	* gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
	gnu_expr_alt_type parameter.  Convert the expression to it instead
	of changing its type in place.
	(build_function_stub): Adjust call to above function.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 6934 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080801/bd912c33/attachment.bin>


More information about the Gcc-patches mailing list