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
1202 type = &sym->type;1202 type = &sym->type;
1203 size = type_size(type, &align);1203 size = type_size(type, &align);
1204 size = (size + 3) >> 2;1204 size = (size + 3) >> 2;
1205 align = (align + 3) & ~3;
1205#ifdef TCC_ARM_HARDFLOAT1206#ifdef TCC_ARM_HARDFLOAT
1206 if (!variadic && (is_float(sym->type.t)1207 if (!variadic && (is_float(sym->type.t)
1207 || is_float_hgen_aggr(&sym->type))) {1208 || 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