diff options
| author | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2016-12-05 23:29:25 +0000 |
|---|---|---|
| committer | Edmund Grimley Evans <Edmund.Grimley.Evans@gmail.com> | 2016-12-05 23:29:25 +0000 |
| commit | e0fe69050d2df59da7370875c4f5eb557618e20c (patch) | |
| tree | 78ecac0861de53ce7e4cbebed5c3745e6f169381 | |
| parent | 2372639e9d3dbca16b48480f5a032254ce46fbab (diff) | |
| download | tinycc-e0fe69050d2df59da7370875c4f5eb557618e20c.tar.gz tinycc-e0fe69050d2df59da7370875c4f5eb557618e20c.tar.bz2 | |
arm64: Fix regression introduced by 6245db9.
| -rw-r--r-- | tccgen.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1197,6 +1197,7 @@ static int reg_fret(int t) return REG_FRET; } +#if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64) /* expand 64bit on stack in two ints */ static void lexpand(void) { @@ -1217,6 +1218,7 @@ static void lexpand(void) } vtop[0].type.t = vtop[-1].type.t = VT_INT | u; } +#endif #ifdef TCC_TARGET_ARM /* expand long long on stack */ @@ -2370,6 +2372,7 @@ static void gen_cast(CType *type) tcc_warning("nonportable conversion from pointer to char/short"); } force_charshort_cast(dbt); +#if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64) } else if ((dbt & VT_BTYPE) == VT_INT) { /* scalar to int */ if ((sbt & VT_BTYPE) == VT_LLONG) { @@ -2380,6 +2383,7 @@ static void gen_cast(CType *type) /* if lvalue and single word type, nothing to do because the lvalue already contains the real type size (see VT_LVAL_xxx constants) */ +#endif } } } else if ((dbt & VT_BTYPE) == VT_PTR && !(vtop->r & VT_LVAL)) { |
