History

switch last 2 params of TOK_memset on ARM

On ARM, TOK_memset is executed via __aeabi_memset which reverse the order of the last two parameters.

Thomas Preud'homme committed 12 years ago

Commit 4e5f15c1 parent 1415d7e1 file · +5 −0Browse files

Unified · Split

tccgen.c+5−0
@@ -5157,8 +5157,13 @@ static void init_putz(CType *t, Section *sec, unsigned long c, int size) · 5156 unmodified lines
51575157 } else {
51585158 vpush_global_sym(&func_old_type, TOK_memset);
51595159 vseti(VT_LOCAL, c);
5160+#ifdef TCC_TARGET_ARM
5161+ vpushs(size);
5162+ vpushi(0);
5163+#else
51605164 vpushi(0);
51615165 vpushs(size);
5166+#endif
51625167 gfunc_call(3);
51635168 }
51645169 }

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