[PATCH] D22045: [X86] Support of no_caller_saved_registers attribute (Clang part)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 25 08:28:28 PDT 2016
On Mon, Jul 25, 2016 at 11:15 AM, H.J Lu <hjl.tools at gmail.com> wrote:
> hjl.tools added a comment.
>
> no_caller_saved_registers attribute can be used with any calling conventions.
Okay, so is it expected that use of this attribute through a function
pointer is not going to produce the same results as calling the
function directly? e.g.,
void func(int, int, int, int) __attribute__((no_caller_saved_registers, cdecl));
int main() {
void (*fp)(int, int, int, int) __attribute__((cdecl)) = func;
func(1, 2, 3, 4);
fp(1, 2, 3, 4); // Not the same as the above call to func()?
}
~Aaron
>
>
> https://reviews.llvm.org/D22045
>
>
>
More information about the cfe-commits
mailing list