[cfe-dev] Bugfixer's question about how C calling convention corresponds to platform CC
Anton Korobeynikov
anton at korobeynikov.info
Tue Oct 9 05:33:22 PDT 2012
> Do you really think CC_AAPCS or CC_AAPCS_VFP sould be equal to C
> calling convention? If so, how about making ClangCallConvToLLVMCallConv
> return llvm::CallingConv::C for CC_AAPCS and CC_AAPCS_VFP like this?
No, they should not. There is a possibility for user to override the
calling convention on ARM.
See http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html ('pcs' attribute)
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the cfe-dev
mailing list