[llvm-commits] [patch] Update llvm-gcc to produce "" for the default calling convention on ARM

Sandeep Patel deeppatel1987 at gmail.com
Thu Jun 17 16:30:09 PDT 2010


On Thu, Jun 17, 2010 at 5:57 PM, Anton Korobeynikov <asl at math.spbu.ru> wrote:
>> Why isn't aapcs-vfp the default cc on "an AAPCS-VFP platform"?
> It is. The problem is that libcalls should use AAPCS w/o VFP.

See ARMISelLowering.cpp:247. I have a more precise patch for this area
I haven't submitted yet, but the essence is the same.

Also, ARM (CodeSourcery) introduced the syntax
__attribute__((pcs("aapcs"))) into GCC to allow mixed declarations of
different CCs. I haven't yet patched llvm-gcc or Clang with this
syntax, but I wanted to be prepared to do so when we saw a use for it.
(I have no idea why ARM wanted this syntax since they just slipped it
in with other changes.)

deep



More information about the llvm-commits mailing list