History

Probably wrong stack alignment for struct on Win64

Shinichiro Hamaji committed 16 years ago

Commit 9d347f81 parent 1f6781f1 file · +1 −1Browse files

Unified · Split

x86_64-gen.c+1−1
@@ -614,7 +614,7 @@ void gfunc_call(int nb_args) · 613 unmodified lines
614614 if (bt == VT_STRUCT) {
615615 size = type_size(&sv->type, &align);
616616 /* align to stack align size */
617− size = (size + 15) & ~16;
617+ size = (size + 15) & ~15;
618618 /* generate structure store */
619619 r = get_reg(RC_INT);
620620 gen_offs_sp(0x8d, r, 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