[Tinycc-devel] uname -o is not valid on macOS

2022-08-11 Thread Christian JULLIEN
Here:test "$(uname -o)" = "Android" && targetos=AndroidWhy not just "$(uname)" ?It shows an error but script continues ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] Jump optimization questions - commit: 8227db3a

2022-08-11 Thread Ekaitz Zarraga
Hi, I think I have it mostly working following your advice but I cannot find how to map v->cmp_r to the field that was storing that information before the commit. In the gjmp_cond in riscv: ``` c ST_FUNC int gjmp_cond(int op, int t) { int tmp; int a = vtop->cmp_r & 0xff; int b =

Re: [Tinycc-devel] Jump optimization questions - commit: 8227db3a

2022-08-11 Thread pursuer2 via Tinycc-devel
--Original-- From: "Ekaitz Zarraga"

[Tinycc-devel] Add missing scope modifier?

2022-08-11 Thread pursuer2 via Tinycc-devel
I'm sorry to send a duplicate mail by mistacka short while ago. what I really want to say is that I make a patch to add all missing scope modifier . Static scope is userful when use ONE_SOURCE build mode, which can avoid unexpected name confilict. The patch show below:

Re: [Tinycc-devel] uname -o is not valid on macOS

2022-08-11 Thread grischka
On 11.08.2022 11:02, Christian JULLIEN wrote: Here: test "$(uname -o)" = "Android" && targetos=Android Why not just "$(uname)" ? Well, because on Android just uname gives "Linux". It shows an error but script continues ___ Tinycc-devel

Re: [Tinycc-devel] Add missing scope modifier?

2022-08-11 Thread grischka
On 11.08.2022 17:06, pursuer2 via Tinycc-devel wrote: I'm sorry to send a duplicate mail by mistack a short while ago. what I really want to say is that I make a patch to add all missing scope modifier . Static scope is userful when use ONE_SOURCE build mode, which can avoid unexpected name

[Tinycc-devel] Support for VLA in function prototype

2022-08-11 Thread ntysdd via Tinycc-devel
Hi, I find although TCC supports VLA in function body, it doesn't seem to support VLA in function prototype. example void f(int n, char ch[n]); Both gcc and clang compile this fine, while tcc says "error: 'n' undeclared" ___ Tinycc-devel mailing list

[Tinycc-devel] Is there plan for __auto_type support

2022-08-11 Thread ntysdd via Tinycc-devel
__auto_type is a useful gnu extension, very useful for writing safe macros. Its advantage over typeof: 1. instead of typeof(expr) _x = (expr), now __auto_type _x = (expr). `expr' now only appears once, avoid potensionexponential expansion. 2. when writing __auto_type x = y; `x' is put in

Re: [Tinycc-devel] uname -o is not valid on macOS

2022-08-11 Thread Elijah Stone
then how about this: test $(uname) = Linux && test $(uname -o) = Android && targetos=Android On Fri, 12 Aug 2022, grischka wrote: On 11.08.2022 11:02, Christian JULLIEN wrote: Here: test "$(uname -o)" = "Android" && targetos=Android Why not just "$(uname)" ? Well, because on Android