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
5157 } else {5157 } else {
5158 vpush_global_sym(&func_old_type, TOK_memset);5158 vpush_global_sym(&func_old_type, TOK_memset);
5159 vseti(VT_LOCAL, c);5159 vseti(VT_LOCAL, c);
5160#ifdef TCC_TARGET_ARM
5161 vpushs(size);
5162 vpushi(0);
5163#else
5160 vpushi(0);5164 vpushi(0);
5161 vpushs(size);5165 vpushs(size);
5166#endif
5162 gfunc_call(3);5167 gfunc_call(3);
5163 }5168 }
5164}5169}

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