[Top][All Lists]

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

Re: [Tinycc-devel] can't build mob branch on x86 64

From: grischka
Subject: Re: [Tinycc-devel] can't build mob branch on x86 64
Date: Fri, 04 Feb 2011 20:23:13 +0100
User-agent: Thunderbird (Windows/20090812)

> #if defined __i386__ || defined __x86_64__
>      DEF(TOK_alloca, "alloca")
> #endif

Not all compilers do define __i386__ or __x86_64__, e.g. MSVC
does not.  (It defines _X86_ and _AMD64_).

Also, the host platform doesn't matter anyway, the question
here is whether alloca is defined for the target platform.

In test/tcctest.c:
> void alloca_test()
> {
> #ifdef TOK_alloca

tcctest.c is not part of the tcc source code and hence never
defines "TOK_alloca" (and ahould not).

Anyway, nice work.  I guess this could be a good headline for next
release: "tcc 0.9.26 now supports C99 type VLAs." ;)

--- grischka

reply via email to

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