Unified · Split
| @@ -1197,6 +1197,7 @@ static int reg_fret(int t) · 1196 unmodified lines | |||
| 1197 | return REG_FRET; | 1197 | return REG_FRET; |
| 1198 | } | 1198 | } |
| 1199 | 1199 | ||
| 1200 | #if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64) | ||
| 1200 | /* expand 64bit on stack in two ints */ | 1201 | /* expand 64bit on stack in two ints */ |
| 1201 | static void lexpand(void) | 1202 | static void lexpand(void) |
| 1202 | { | 1203 | { |
| @@ -1217,6 +1218,7 @@ static void lexpand(void) · 14 unmodified lines | |||
| 1217 | } | 1218 | } |
| 1218 | vtop[0].type.t = vtop[-1].type.t = VT_INT | u; | 1219 | vtop[0].type.t = vtop[-1].type.t = VT_INT | u; |
| 1219 | } | 1220 | } |
| 1221 | #endif | ||
| 1220 | 1222 | ||
| 1221 | #ifdef TCC_TARGET_ARM | 1223 | #ifdef TCC_TARGET_ARM |
| 1222 | /* expand long long on stack */ | 1224 | /* expand long long on stack */ |
| @@ -2370,6 +2372,7 @@ static void gen_cast(CType *type) · 1147 unmodified lines | |||
| 2370 | tcc_warning("nonportable conversion from pointer to char/short"); | 2372 | tcc_warning("nonportable conversion from pointer to char/short"); |
| 2371 | } | 2373 | } |
| 2372 | force_charshort_cast(dbt); | 2374 | force_charshort_cast(dbt); |
| 2375 | #if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64) | ||
| 2373 | } else if ((dbt & VT_BTYPE) == VT_INT) { | 2376 | } else if ((dbt & VT_BTYPE) == VT_INT) { |
| 2374 | /* scalar to int */ | 2377 | /* scalar to int */ |
| 2375 | if ((sbt & VT_BTYPE) == VT_LLONG) { | 2378 | if ((sbt & VT_BTYPE) == VT_LLONG) { |
| @@ -2380,6 +2383,7 @@ static void gen_cast(CType *type) · 4 unmodified lines | |||
| 2380 | /* if lvalue and single word type, nothing to do because | 2383 | /* if lvalue and single word type, nothing to do because |
| 2381 | the lvalue already contains the real type size (see | 2384 | the lvalue already contains the real type size (see |
| 2382 | VT_LVAL_xxx constants) */ | 2385 | VT_LVAL_xxx constants) */ |
| 2386 | #endif | ||
| 2383 | } | 2387 | } |
| 2384 | } | 2388 | } |
| 2385 | } else if ((dbt & VT_BTYPE) == VT_PTR && !(vtop->r & VT_LVAL)) { | 2389 | } else if ((dbt & VT_BTYPE) == VT_PTR && !(vtop->r & VT_LVAL)) { |