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
11971197 return REG_FRET;
11981198 }
11991199
1200+#if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64)
12001201 /* expand 64bit on stack in two ints */
12011202 static void lexpand(void)
12021203 {
@@ -1217,6 +1218,7 @@ static void lexpand(void) · 14 unmodified lines
12171218 }
12181219 vtop[0].type.t = vtop[-1].type.t = VT_INT | u;
12191220 }
1221+#endif
12201222
12211223 #ifdef TCC_TARGET_ARM
12221224 /* expand long long on stack */
@@ -2370,6 +2372,7 @@ static void gen_cast(CType *type) · 1147 unmodified lines
23702372 tcc_warning("nonportable conversion from pointer to char/short");
23712373 }
23722374 force_charshort_cast(dbt);
2375+#if !defined(TCC_TARGET_ARM64) && !defined(TCC_TARGET_X86_64)
23732376 } else if ((dbt & VT_BTYPE) == VT_INT) {
23742377 /* scalar to int */
23752378 if ((sbt & VT_BTYPE) == VT_LLONG) {
@@ -2380,6 +2383,7 @@ static void gen_cast(CType *type) · 4 unmodified lines
23802383 /* if lvalue and single word type, nothing to do because
23812384 the lvalue already contains the real type size (see
23822385 VT_LVAL_xxx constants) */
2386+#endif
23832387 }
23842388 }
23852389 } 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