[RFA] Support for calling functions with decimal float arguments in x86 and x86_64

Thiago Jung Bauermann bauerman@br.ibm.com
Wed Feb 13 16:39:00 GMT 2008


Hi,

The attached patch implements the calling convention for decimal
floating point in x86 32-bits and x86_64 (arguments and return value).
Now all DFP tests pass in these architectures.

For x86 it was very easy. The only case which needs special attention is
a function returning a _Decimal128 value, which uses struct return
convention.

For x86_64, I just had to update the classification function with the
proper class for the DFP types, as specified by the AMD64 ABI Draft
version 0.99.

This patch introduces no regression (tested in Linux/i686 and
Linux/x86_64). Ok to commit?
-- 
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dfp-infcall-x86.diff
Type: text/x-patch
Size: 2349 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080213/5f93dded/attachment.bin>


More information about the Gdb-patches mailing list