History

x86_64/elf: only variadic calls need rax

Pavlas, Zdenek committed 10 years ago

Commit c9487321 parent 0373fe01 file · +2 −1Browse files

Unified · Split

x86_64-gen.c+2−1
@@ -1441,7 +1441,8 @@ void gfunc_call(int nb_args) · 1440 unmodified lines
1441 }1441 }
1442 }1442 }
1443 1443
1444 oad(0xb8, nb_sse_args < 8 ? nb_sse_args : 8); /* mov nb_sse_args, %eax */1444 if (vtop->type.ref->c != FUNC_NEW) /* implies FUNC_OLD or FUNC_ELLIPSIS */
1445 oad(0xb8, nb_sse_args < 8 ? nb_sse_args : 8); /* mov nb_sse_args, %eax */
1445 gcall_or_jmp(0);1446 gcall_or_jmp(0);
1446 if (args_size)1447 if (args_size)
1447 gadd_sp(args_size);1448 gadd_sp(args_size);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t