[PATCH] AAPCS-VFP: double and long double have the same machine type

Oliver Stannard oliver.stannard at arm.com
Wed Feb 5 06:25:47 PST 2014


Hi all,

In the AAPCS, for the purposes of deciding if a struct is a homogeneous
floating-point aggregate, two fundamental types are considered the same if
their machine types are the same. The `double' and `long double' C types
have the same machine type in the 32-bit version of the ABI, so we must
consider the following struct to be a HFA:

struct {
  double a;
  long double b;
} s;

The attached patch fixes this.

Oliver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hfa-long-double.patch
Type: application/octet-stream
Size: 1963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140205/a97b460d/attachment.obj>


More information about the cfe-commits mailing list