History

arm64: Fix regression introduced by 6245db9.

Edmund Grimley Evans committed 9 years ago

Commit e0fe6901 parent 23726391 file · +4 −0Browse files

Unified · Split

tccgen.c+4−0
@@ -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 */
1201static void lexpand(void)1202static 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_ARM1223#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 because2383 /* if lvalue and single word type, nothing to do because
2381 the lvalue already contains the real type size (see2384 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)) {

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