diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2014-02-03 22:27:23 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2014-02-03 22:28:08 +0800 |
| commit | 4e5f15c6851c69c4cc5da18209218eb918dbee77 (patch) | |
| tree | a299472b6d667c1e478d80b0788ee4981b758fd1 | |
| parent | 1415d7e6b6c41faf735c9aff513ec2fd6c864d38 (diff) | |
| download | tinycc-4e5f15c6851c69c4cc5da18209218eb918dbee77.tar.gz tinycc-4e5f15c6851c69c4cc5da18209218eb918dbee77.tar.bz2 | |
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.
| -rw-r--r-- | tccgen.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5157,8 +5157,13 @@ static void init_putz(CType *t, Section *sec, unsigned long c, int size) } else { vpush_global_sym(&func_old_type, TOK_memset); vseti(VT_LOCAL, c); +#ifdef TCC_TARGET_ARM + vpushs(size); + vpushi(0); +#else vpushi(0); vpushs(size); +#endif gfunc_call(3); } } |
