tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] PATCH to fix arm64 regression caused by 6245db9


From: grischka
Subject: Re: [Tinycc-devel] PATCH to fix arm64 regression caused by 6245db9
Date: Sat, 03 Dec 2016 11:56:13 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Edmund Grimley Evans wrote:
6245db9fca4046e568da41c6a1f8c51ee9e2f56c broke TCC on arm64. This
patch seems to fix it again. Since it also affects x86_64, could
someone else please take a look?

Yes, makes sense.  I'd suggest to #ifdef out the lexpand() function
per se also, for these targets.

-- gr


diff --git a/tccgen.c b/tccgen.c
index d064024..1c091d2 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -2370,6 +2370,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 +2381,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)) {

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]