History

Align on 4n bytes when copying fct args on stack

When copying function arguments on stack in prolog, use multiple of 4 bytes for alignment.

Thomas Preud'homme committed 13 years ago

Commit 6c4d3241 parent e0aee4f1 file · +1 −0Browse files

Unified · Split

arm-gen.c+1−0
@@ -1202,6 +1202,7 @@ void gfunc_prolog(CType *func_type) · 1201 unmodified lines
12021202 type = &sym->type;
12031203 size = type_size(type, &align);
12041204 size = (size + 3) >> 2;
1205+ align = (align + 3) & ~3;
12051206 #ifdef TCC_ARM_HARDFLOAT
12061207 if (!variadic && (is_float(sym->type.t)
12071208 || is_float_hgen_aggr(&sym->type))) {

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