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

2022-08-13 Thread pursuer2 via Tinycc-devel
grischka wrote Better leave alone tcccoff.c too.  Other than that I think it makes sense.  You could test with     $ make clean && make all cross ONE_SOURCE=yes and with "no" too. I followed these instruction, and dumped symbol table of all object files. I found more function has scope problem

[Tinycc-devel] Add missing scope modifier?

2022-08-11 Thread pursuer2 via Tinycc-devel
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 confilict. The patch show below: https://github.com/

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

2022-08-11 Thread pursuer2 via Tinycc-devel
-- Original -- From: "Ekaitz Zarraga" https://lists.nongnu.org

Re: [Tinycc-devel] Outdated .def files

2021-09-19 Thread pursuer2 via Tinycc-devel
In my opinion, as tcc do not offer the complete libc on unix-like os, Current Windows support in tcc which help tcc compile itself is enough. We can recommand user to use tcc with compatible c library (like "mingw","msvc","windows sdk"?) for other os-dependent feature. I'm not familiar with Wi

Re: [Tinycc-devel] Segfault on arm64 when making a function call with many arguments

2021-06-18 Thread pursuer2 via Tinycc-devel
This bug may caused by "vpushv" SValue with VT_CMP flag. There should be only one VT_CMP SValue on vstack.  I make below patch to fix it, then the compilation exit normally. But I have no arm64 device with GNU/Linux to verify the test.  diff --git a/arm64-gen.c b/arm64-gen.c index 6389409..a9cb