Re: [Tinycc-devel] Include path bug (Was: Re: plans to 0.9.27)

2017-10-13 Thread grischka
Steffen Nurpmeso wrote: Hello. So i thought about it and come back to apologize. At least mildly. I guess the right thing to do would be to strip all paths which are also in the system array from the user paths present in the non-standardized $C_INCLUDE_PATH environment variable, even if that

Re: [Tinycc-devel] plans to 0.9.27

2017-10-13 Thread grischka
inycc-devel [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of grischka Sent: jeudi 12 octobre 2017 09:32 To: tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] plans to 0.9.27 Christian Jullien wrote: Chris, This is precisely why I wrote win32/Makefile which, with only

Re: [Tinycc-devel] ARM64 PE32+ and UEFI support

2017-09-09 Thread grischka
A On Wed, Aug 23, 2017 at 8:57 AM, grischka <gris...@gmx.de> wrote: Andrei E. Warkentin wrote: Dear tinycc-devel, A few more fixes for your review. - support for generating ARM64 PE32+ images - support for generating X64, ARM64, IA32 (untested) and ARM (untested) UEFI images. I don't th

Re: [Tinycc-devel] Push reproducible builds script? (for windows)

2017-09-26 Thread grischka
might be, but it's hard to test and guarantee. As for making the instructions simple, IMHO we should publish instructions for users with only microsoft tools, and for users with mingw shell dev env. On Tuesday, September 26, 2017 6:45 PM, Christian Jullien <eli...@orange.fr>

Re: [Tinycc-devel] plans to 0.9.27 (was 0.9.28)

2017-09-24 Thread grischka
septembre 2017 19:40 To: 'grischka'; tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] plans to 0.9.28 Very nice indeed. I offer you my time to test every attempts on: Windows x86/x64 Linux x86/x64 RPi arm Aarch64 -Original Message- From: grischka [mailto:gris...@gmx.de] Sent: dimanche

Re: [Tinycc-devel] Using tinycc for full source bootstrapping

2017-09-24 Thread grischka
I wonder which would be the smaller patch: The changes you propose for tcc or a patch to support these constructs as is in the bootstrap compiler. Otherwise if that is not your criterion what would be the arguments for the semantics that you mention that they do not belong to "simple enough C"?

Re: [Tinycc-devel] plans to 0.9.28

2017-09-24 Thread grischka
Hi, I just pushed a patch for more complete 'long' support (which was started by Matthias Gatto for _Generic), as well as with eome improvements for multicharacter constants: http://repo.or.cz/tinycc.git/commitdiff/1443039416dd02750765efde1af35e31c8d41be3 So, now, basically, I'd agree to,

Re: [Tinycc-devel] Symlinks in include paths

2017-09-26 Thread grischka
pen/read/write/close, more or less), doesn't look good. A matter of taste. A case of "the feature is not to have that feature". Which you might or might not agree to ;) -- grischka Regards, Petr S. ___ Tinycc-devel mailing list

Re: [Tinycc-devel] Push reproducible builds script? (for windows)

2017-09-26 Thread grischka
avih wrote: I'd like to push my reproducible build script to mob, are there objections? Not in principle. Except I'd appreciate some concept to advise users which method to build tcc on or for windows to use best in what situation. We do support: * msys with the normal ./configure && make &&

Re: [Tinycc-devel] plans to 0.9.27 (was 0.9.28)

2017-09-25 Thread grischka
avih wrote: Two things: 1. Will the version be 0.9.27 or 0.9.28? 0.9.27. 2. On windows in msys2 mingw 64 environment with gcc 7.2.0, (building tcc 64 for windows with mingw gcc 64) the build completes but some tests fail (see below). Works for me with gcc 5.3 and earlier but does not

Re: [Tinycc-devel] Using tinycc for full source bootstrapping

2017-09-26 Thread grischka
Larry Doolittle wrote: The comma operator example you posted, that confused me at first, is an exception, and I just pushed a patch. You override someone else's style decision with your own because you are confused? We're all confused, eventually. -- gr

Re: [Tinycc-devel] Libtcc and existing variables

2017-09-28 Thread grischka
Joel Bodenmann wrote: Hello folks, I am successfully using libtcc in an application. I'm very happy with it and I thank you for providing this awesome tool. So far, my needs were basically completely covered by the libtcc_test.c example program that uses tcc_add_symbol() to give the

Re: [Tinycc-devel] Push reproducible builds script? (for windows)

2017-09-28 Thread grischka
avih wrote: > On Wednesday, September 27, 2017 9:30 AM, grischka <gris...@gmx.de> wrote: > May I suggest something: Why don't you guys combine your knowledge> and personal preferences and apply it to our standard Makefile instead> of adding each your own scripts

Re: [Tinycc-devel] plans to 0.9.27

2017-10-11 Thread grischka
grischka wrote: avih wrote: Two things: 1. Will the version be 0.9.27 or 0.9.28? 0.9.27. 2. On windows in msys2 mingw 64 environment with gcc 7.2.0, (building tcc 64 for windows with mingw gcc 64) the build completes but some tests fail (see below). Now, I fixed that, plus the ARM

Re: [Tinycc-devel] Push reproducible builds script? (for windows)

2017-09-27 Thread grischka
ease win32 binary packages. No problems with maintenance, no extra files to confuse the user, just a new make target that everybody can use: ./configure make win32-dist What do you guys think? --- grischka ___ Tinycc-devel mailing list Ti

Re: [Tinycc-devel] Unify C and asm symbols

2017-11-28 Thread grischka
fined symbol 'x5' $ tcc -c t1.c && objdump -x t1.o SYMBOL TABLE: ldf *ABS* t1.c 004a l .text 001f x5 Here 'x5' should have the g[lobal] binding from C. --- grischka ___ T

Re: [Tinycc-devel] forward asm symbols vs static

2017-11-23 Thread grischka
avih wrote: - tcc 64 fails the asm tests (again, all versions regardless of how it was built). Different calling convention on win64. I'd suggest the attached version which is more platform neutral. -- gr On Thursday, November 23, 2017 8:17 PM, grischka <gris...@gmx.de>

Re: [Tinycc-devel] forward asm symbols vs static

2017-11-23 Thread grischka
' is a string prefix in newer gcc versions. (Don't know, maybe for unicode?). Btw, what about the "vide" hack on tccasm.c:1020 from commit 6afe668ec Can we delete it? Ciao, --- grischka avih wrote: The test is always compiled by tcc. Of course. So if you say "initial compiler&

Re: [Tinycc-devel] forward asm symbols vs static

2017-11-25 Thread grischka
data section. I don't see how commit e7c71e24 could make a difference. Are you sure the .def file isn't generated by a TCC from a commit before? Otherwise I'm at a loss, and not having a Windows system I can't help much. grischka, any ideas? .def is created automatically if an "export

Re: [Tinycc-devel] Unify C and asm symbols

2017-12-12 Thread grischka
then say ... next Sunday. Thanks, --- grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] debug info broken

2017-12-18 Thread grischka
Michael Matz wrote: Maybe this is the problem in that gdb doesn't want to read debug info further after seeing this error? Yes, seems that GDB (or some version of) refuses to load any symbols at all, also not from stabs, if dwarf info (which comes from crt1/i/n.o) is broken. And that might

[Tinycc-devel] TCC version 0.9.27 is out

2017-12-17 Thread grischka
Jullien Claudio Bley Daniel Glöckner Dave Dodge Dave Long David Mertens Dennis Yurichev Detlef Riekenberg Domingo Alvarez Duarte Edmund Grimley Evans emekoi Emil Fabrice Bellard Felix Nawothnig Filip Navara Frédéric Féret Gabriel Corneanu grischka gus knight Hanzac Chen

Re: [Tinycc-devel] forward asm symbols vs static

2017-11-19 Thread grischka
ple that "free_asm_labels" should be called only once at the end of each "translation unit" (file). Below is some test that I just have tried. --- grischka $ gcc -c t1.c t2.c && gcc t1.o t2.o -o t.exe && t.exe x1 x2 x3 $ tcc -c t1.c t2.c && tcc t1.o t2.o

Re: [Tinycc-devel] forward asm symbols vs static

2017-11-16 Thread grischka
Forgot to mention the actual benefit from my former change: It was (IIRC) to allow the dlltest test pass on musl. (That is to use tcc on x86_64 to create a libtcc.so without DT_TEXTREL) -- gr grischka wrote: Michael Matz wrote: Hello grischka, I had to revert a small part of your da8c62

Re: [Tinycc-devel] Win64 PE JIT codegen: Bad unwind info / runtime function tables

2017-11-08 Thread grischka
altogether and instead handles R_XXX_RELATIVE in the relocate backends (as it should be). It also sets the uw_pdata section in case it was not set by any compilation, that is if you wanted to run just already compiled object files. If it works I'll push that later. --- grisch

Re: [Tinycc-devel] Win64 PE JIT codegen: Bad unwind info / runtime function tables

2017-11-02 Thread grischka
ception_caught == 1); } *Also, if I directly pass the 'p' pointer above from **pe_add_unwind_data** into **RtlAddFunctionTable **(by hacking some stuff), everything works as it should and the test passes.* So I wouldn't mind fixing this, but if anyone (especially grischka) could shed some ba

Re: [Tinycc-devel] Unify C and asm symbols

2017-12-06 Thread grischka
bols as "static" first always. This however needs to post-process asm symbol again (to convert any still undefined symbols to globals), as well as to patch relocation entries if such global already was defined in a previous file. See attached (additional) patch. It definitely

Re: [Tinycc-devel] Unify C and asm symbols

2017-12-10 Thread grischka
e release, say next Sun (17.12.) How does that sound? --- grischka Ciao, Michael. commit 13a9037e137c1f75bb1023fcc9d0226591a5ba0f Author: grischka Date: Sun Dec 10 10:25:33 2017 +0100 fix diff --git a/tccgen.c b/tccgen.c index 4159b9e..47098c2 100644 --- a/tccgen.c +++ b/tccgen.

Re: [Tinycc-devel] Unify C and asm symbols

2017-12-04 Thread grischka
ssibly simpler and better approach then I think it's worth to still wait, 1, 2, 3 ... weeks doesn't matter ;) --- grischka Ciao, Michael. commit 21f943378bbbec0a499412e411ddecd51e505b89 Author: grischka Date: Thu Nov 30 15:15:22 2017 +0100 tccasm: use global(_symbol)_stack * re

Re: [Tinycc-devel] A few items about windows ce for discussion

2018-05-13 Thread grischka
me of course ;) Thanks, -- grischka Best Regards, Jason ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] getting debug info for stack dumps

2018-05-25 Thread grischka
to access the stab sections at runtime is win32 specific though. -- gr Thank you Yash >From dfbfa24f6370b8d4038d3fe886ca047c69a381ed Mon Sep 17 00:00:00 2001 From: grischka Date: Wed, 15 Sep 2010 13:43:54 +0200 Subject: tccrun: enable standalone backtrace Tested on win32. Detailed recipe:

Re: [Tinycc-devel] Found an issue when compiling raylib with TCC

2018-06-01 Thread grischka
the wrong _stat struct did not issue a warning as it should, here http://repo.or.cz/tinycc.git/commitdiff/2b155a8c16b2856461020e65370385347a485d65 Ciao, --- grischka Ciao, Michael. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https

[Tinycc-devel] mob reset

2017-10-19 Thread grischka
emekio, please remove the binary file (libtcc.so) from your commit, then push again. --gr ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] tcc can't build any binary (incomplete search directories)

2017-10-26 Thread grischka
tcc@web.de wrote: The i386-tcc compiler can't build a binary on a 64bit linux, because it can't find the crt*.o start files. cross-compilers need manual configuration, type 'make help' -- gr The missing files are present in: /usr/lib/i386-linux-gnu additional static libraries are

Re: [Tinycc-devel] Linking Windows Resource Files

2017-12-30 Thread grischka
Kenneth Roger wrote: The method described in tcc-win32.txt for linking windows resource files does not work. For example: C:\tcc\lib00>\mingw\bin\windres -O coff gen.rc -o genres.o C:\tcc\lib00>..\tcc gen.c genres.o -o gen.exe genres.o: error: unrecognized file type I'm using

Re: [Tinycc-devel] 2 corrections to tinycc v0.9.27

2018-02-13 Thread grischka
j...@ysengrin.com wrote: Hi, Thanks for releasing a new version and specially for adding the full winapi. shlobj.h was missing before this useful addition. So I finally was able to compile, link and run my little project with tcc http://tinyfiledialogs.sf.net However, I had to make 2

Re: [Tinycc-devel] 2 corrections to tinycc v0.9.27

2018-02-13 Thread grischka
grischka wrote: Though it seems to me that if you do #define _wstat _wstat64 then you'd also need to #define _stat _stat64 in order to have the st_Xtime members filled correctly. Hm. Actually I wonder since when tcc doesn't warn if a function is called with an incompatible struct

Re: [Tinycc-devel] "_winstart not defined"

2018-02-10 Thread grischka
k2tom wrote: tcc -o test.exe test.c -mwindows -mwindows nas no effect. TCC will create a GUI executable automatically if there is a WinMain function. tcc: _winstart not defined I suspect the libtcc1.a that you once did build yourself is missing files. See

Re: [Tinycc-devel] "_winstart not defined"

2018-02-10 Thread grischka
Christian Jullien wrote: Grischka, FYI The link on http://download.savannah.nongnu.org/releases/tinycc/ is not working => 404 Not YET working, I suppose: Downloads will redirect to your nearest mirror site. Files on mirrors may be subject to a replication delay of up to 24 ho

Re: [Tinycc-devel] [PATCH] tcc: remove buggy nodata_wanted optimization

2018-02-22 Thread grischka
g); /* mov %xmm0, %rxx */ o(0x66); Thanks, -- grischka If you wanted to do that optimization correctly, you'd need to build control flow graph, and tcc is just too simple to do that. Mikulas Signed-off-by: Mikulas Patocka <mpato...@twibright.c

Re: [Tinycc-devel] debug info broken

2017-12-28 Thread grischka
grischka wrote: But why, as the comment suggests, some versions of GDB work better if dwarf info is broken remains a mystery to me. Maybe these won't load stabs if dwarf is ok. If it were me I'd still just remove that "&& (s->sh_flags & SHF_ALLOC))". Ok, I was able

Re: [Tinycc-devel] S-Lang tinycc module.

2018-03-27 Thread grischka
Agathoklis D. Chatzimanikas wrote: On Fri, Mar 23, at 08:58 grischka wrote: Agathoklis D.E Chatzimanikas wrote: Hi, I created a tinycc binding for the S-Lang programming language, https://github.com/agathoklisx/slang-devel/tree/master/slang-modules/tcc and while I was trying to create

Re: [Tinycc-devel] S-Lang tinycc module.

2018-03-23 Thread grischka
you can fix it on the mob branch, welcome. Thanks, -- grischka Best Αγαθοκλής p.s., (note that my C Fu is at a novice level, so be kind for any error :)) ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.o

Re: [Tinycc-devel] New error found on RPi3 buster with gcc 8.3 on test 93

2019-06-25 Thread grischka
tion might return no value: 'intr' Auto Test3 OK That is maybe because your headers #define __attribute__ Try #undef __attribute__ somewhere. --- grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg

2019-06-24 Thread grischka
Pascal Cuoq wrote: int t[][3]; [ error: unknown type size ] Actually that is not wrong. It's the same as extern int t[][3]; MSVC accepts it without warning, and GCC too if either 'extern' or the size is still specified: int t[][3]; extern int t[][3]; or int

Re: [Tinycc-devel] ARM codegen issue, possibly fixed already

2019-07-14 Thread grischka
Harald van Dijk wrote: As that commit is an optimization, not a codegen fix, I would like to ask whether the original issue is still present and just requires a more complex test case to expose, or whether it has accidentally been fixed by this commit. No, I think this bug must exist since the

Re: [Tinycc-devel] Abusive tags on repo.or.cz

2019-07-14 Thread grischka
uot; and "te-amo-godmau5" (and some more). As to "prevent them from being re-added" I didn't see how right now. Thanks, -- grischka Cheers, Harald van Dijk ___ Tinycc-devel mailing list Tinycc-devel@nongn

Re: [Tinycc-devel] Abusive tags on repo.or.cz

2019-07-15 Thread grischka
nup ARM C aarch64 c67 compiler fast generator linux otcc relicense tcc tinycc windows x64 x86 Thanks, -- grischka Cheers, Harald van Dijk ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.o

Re: [Tinycc-devel] Windows x86_64 BUG, SIGSEV is not correctly handled by installed signal handler.

2019-04-10 Thread grischka
Michael Matz wrote: So let's find out what causes the difference: if you can send me ... Well, see win32/lib/chkstk.S, at the bottom /* SEH on x86-64 not implemented */ ;) One could try the code below instead but I would need some time to rethink how good it is. --- grischka static

Re: [Tinycc-devel] path to .def files

2019-09-03 Thread grischka
AndreyCh wrote: Hello, How can I add the path to .def files, the -I or -L switch does not work. tcc -vv glfw.def opengl32.def glu32.def -DGLFW_DLL -run triangle.c -L always has an effect only in combination with -l : tcc -L -lglfw ... With this tcc will look in for glfw.def,

Re: [Tinycc-devel] constructor/destructor support

2019-10-30 Thread grischka
and dreams ;) -- grischka Ciao, Michael. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org

Re: [Tinycc-devel] make tcc reentrant

2019-12-06 Thread grischka
ant, except compilation itself. Such that in order to be thread-safe one would need to put a semaphore just around the "tcc_compile()" function. -- grischka So, while I can see the wish for this feature, I don't necessarily see that tcc should be changed to accomodate. If anything I would

Re: [Tinycc-devel] make tcc reentrant

2019-12-10 Thread grischka
Hey, Couldn't help to try out some things, related to the matter. See https://repo.or.cz/tinycc.git/commitdiff/72729d8e360489416146d6d4fd6bc57c9c72c29b Anyway I think, it still does look like tinycc. --- grischka ag wrote: And at the end is always about mechanics and mechanism[s] (funny

Re: [Tinycc-devel] mob is broken for ARM/ARM64 [make tcc reentrant]

2019-12-11 Thread grischka
ep' and 'gettimeofday', maybe it needs unistd.h or time.h or maybe sys/time.h. I see your gcc suggests to use 'fseek' instead of 'usleep'. That is interesting. Thanks, --- grischka === For ARM gcc -o libtcc_test_mt libtcc_test_mt.c ../libtcc.a -fno-str

Re: [Tinycc-devel] make libtcc reentrant

2019-12-11 Thread grischka
Ulrich Schmidt wrote: Am 11.12.2019 um 03:58 schrieb grischka: With multi-threading though, the underlying machine tcc code, should account for side effects of the shared execution space, so adds even a tiny bit (and with the best of efforts) of complexity. So that is not quite primitive

Re: [Tinycc-devel] make tcc reentrant

2019-12-12 Thread grischka
uso ewin wrote: On Wed, Dec 11, 2019 at 3:44 PM Michael Matz wrote: Hi, On Wed, 11 Dec 2019, grischka wrote: Couldn't help to try out some things, related to the matter. See https://repo.or.cz/tinycc.git/commitdiff/72729d8e360489416146d6d4fd6bc57c9c72c29b Yeah, something like

Re: [Tinycc-devel] make tcc reentrant

2019-12-16 Thread grischka
this case (except one wanted to compile files from within a TCCErrorFunc callback ;) Cheers, --- grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

[Tinycc-devel] bcheck cleanup

2019-12-14 Thread grischka
idea you could come up with, given the common limitations of time of course. Also, new features should have at least some relevance for other people too. Which personal easter-eggs or home-brew temporary debugging add-ons usually don't. Thanks, --- grischka

Re: [Tinycc-devel] bounds checking

2019-12-10 Thread grischka
Herman ten Brugge via Tinycc-devel wrote: I just committed a large patch that fix a lot of bounds checking problems. Hmm, is this supposed to find something, too? For example: { char a[10], b[10], c; b[15] = 16; ()[20] = 21; free(a); Seems to pass without any complain. Btw,

Re: [Tinycc-devel] CI improvements

2019-12-18 Thread grischka
/msys2/wiki/MSYS2-installation There is a 'mingw32/64_shell.bat' to start the shell. I wouldn't at first update the base itself as they describe, just use as is. To start with: pacman -S mingw-w64-i686-gcc (or -x86_64-) pacman -S make diffutils --- grischka

[Tinycc-devel] standalone backtraces

2020-01-17 Thread grischka
with DLLs/SOs too (i.e. multiple instances of stab debug infos). See https://repo.or.cz/tinycc.git/commitdiff/ef42295f --- grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] standalone backtraces

2020-01-18 Thread grischka
t;void f() {}" | tcc - -shared -o a.so echo "main() {}" | tcc - a.so Thanks, --- grischka All other tests in 112_backtrace.c have simular problems. Perhaps I did something wrong with windows/wine. I only use windows to update my tomtom. The makefile for w

Re: [Tinycc-devel] standalone backtraces

2020-01-19 Thread grischka
25960 of Verneed record --- grischka Regards, Herman ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] Buggy commit "Rework expr_landor"

2020-01-20 Thread grischka
d 327 bytes (0) before: ../lib/bt-log.c:61: at test_stack: 7008 ../tccpp.c:2772: parsing at 'next_nomacro1' ../tccgen.c:2214: by gen_opic ../tccgen.c:2674: by gen_op ... ../tcc.c:346: by main [136 levels] code: 220284 bytes, suppressed 327 bytes --- grischk

Re: [Tinycc-devel] Buggy commit "Rework expr_landor"

2020-01-20 Thread grischka
f; } else gvtst_set(i, t); This appears to generate byte-identical code to before, with my tests. option 2: moving up 'ncw_prev = nocode_wanted;'. This appears to work too but generates more code. It's all somehow brittle, with the mix of ++/-- with |=/&a

[Tinycc-devel] busybox for win32

2020-05-12 Thread grischka
on) s : Shell (exit to return) 7 : Back to Basics 0 : Quit Enter: _ See also the included 'about.txt'. Last and only somehow related, I pushed a patch on 'mob' to allow make to run more silently. Cheers, -- grischka ___ Tinycc-dev

Re: [Tinycc-devel] Thumb2 codegen ready for review

2020-05-23 Thread grischka
ome notes somewhere though, about how people can build this and how and where they can use it at all. ;) --- grischka Erlend Sveen wrote: Hi, It's been a while now since I've been working on and off various projects for the last few months, but I finally think my TCC additions are ready for a sec

Re: [Tinycc-devel] It seem I pull code in wrong way. How can I revert it?

2020-09-11 Thread grischka
avih via Tinycc-devel wrote: While force-pushing is usually possible, I'd argue that at the tcc repo (and generally elsewhere too, but to each his own practices) no one should force push except maybe maintainers and maybe other regular contributors which 100% know what they're doing when

Re: [Tinycc-devel] It seem I pull code in wrong way. How can I revert it?

2020-09-13 Thread grischka
Pursuer wrote: Thanks a lot for your rearranging and advice. by the way I'm sure I only add tcc.h to the commit "misplaced parenthese around...", So I'm also confused about the side-effect mentioned by Christian Jullien. (In fact I had cloned a new copy before rearranging, In which the

Re: [Tinycc-devel] Seeking help to finish debugging a crash

2020-10-19 Thread grischka
John Scott wrote: Hello, I've pushed a couple miniscule commits to mob and would like to work up to more complex tasks. I've reported more issues than I've fixed and would like to turn that around  Hi, fixes are always welcome but don't start with things that aren't broken: MS-VC8's

Re: [Tinycc-devel] Fix boundschecking for signal/sigaction/fork

2020-09-17 Thread grischka
, MAP_PRIVATE, fd, 0); +#endif Might depend on what selinux features you have enabled but IIRC alpine musl for example did not allow to run code from memory that once was allocated as writable. --- grischka ___ Tinycc-devel mailing list Tinycc-devel

Re: [Tinycc-devel] Thumb2 codegen ready for review

2020-05-25 Thread grischka
advantages. --- grischka Regards, Erlend S. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

[Tinycc-devel] Some Stats

2020-07-06 Thread grischka
changed, 124 insertions(+), 155 deletions(-) libtcc: accept tcc_define_symbol(s1, "sym=value", NULL) 3 files changed, 19 insertions(+), 44 deletions(-) that is -152 lines total ;) -- grischka ___ Tinycc-devel mailing list Tinycc-devel@

Re: [Tinycc-devel] Regression building GMP with tcc, bisected

2020-07-06 Thread grischka
t at least *tries* to explain something, for the other people, I mean. ? -- grischka Herman ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] NetBSD/aarch64 Unknown relocation type for got: 299

2021-01-07 Thread grischka
target, aka wince. I don't know if it's still functional (or ever was) though. --- grischka The only target that does now uses DT_TEXTREL is i386. But this requires a complete rewrite. Herman ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org

Re: [Tinycc-devel] Patch: Treat func pointers with different return types as not compatible

2020-11-24 Thread grischka
Arthur Williams wrote: I noticed a problem with tcc and _Generic that caused function pointers with different return types to be treated as compatible which would prevent the following code from compiling with the error "error: type match twice". I'm aware that the person who originally added

Re: [Tinycc-devel] Reformatting Tinycc source code

2020-12-02 Thread grischka
Tyge Løvset wrote: I have slowly started to look into the core code of tinycc, but can't help being annoyed by the inconsistent formatting of the code, in particular the mixing of tabs and spaces. (sometimes tabs means 4 indents, sometimes 8). Not anywhere in tcc that I know are tabs equal to

Re: [Tinycc-devel] Grischka last commit breaks some ports

2020-12-19 Thread grischka
Herman ten Brugge via Tinycc-devel wrote: On 12/18/20 2:45 PM, grischka wrote: Christian Jullien wrote: On OpenBSD: I noticed some tests were excluded but the reasons were say not really obvious: Test: 106_pthread... From it's name it's testing pthreads. OpenBSD appears to have pthreads

Re: [Tinycc-devel] Grischka last commit breaks some ports

2020-12-18 Thread grischka
Christian Jullien wrote: On OpenBSD: I noticed some tests were excluded but the reasons were say not really obvious: Test: 106_pthread... From it's name it's testing pthreads. OpenBSD appears to have pthreads. So what is the deal? Test: 113_btdll... Seen from the snippet below, tcc

Re: [Tinycc-devel] exporting uninitialized global symbols does not work on PE

2020-11-02 Thread grischka
I removed that check. Probably it was there for a reason once but I don't remember what it was. At best it is not needed anymore. --- grischka Any hints how I could modify that code? I am not a PE expert and thus I do not know how uninitialized symbols are represented in PE. Best Regards,

Re: [Tinycc-devel] TCC crash with multiline string

2020-11-02 Thread grischka
Code Hz wrote: Hello, This is the minimal sample input, it only crash on the windows, but I do not think it is os-dependent. ``` b(){" "2 ``` I fixed that. The problem here was not with the multi-line string but rather with the two constant tokens ("" & 2) following each other immediately

Re: [Tinycc-devel] x86_64 tcc doesn't set sign bit on NaNs

2021-01-05 Thread grischka
tinycc.git/commitdiff/aeb8f427e2be133d6a0a67b695eb9579f5fa4232 -- grischka ... but alas, fixed in mob. Thanks for the report, Arnold. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] recover commits on mob

2021-01-05 Thread grischka
Danny Milosavljevic wrote: So I think what happened is that one time I force-pushed and overwrote the mob branch with a command like the one above (sorry). It should have only affected a tiny bit though since I rebase arm-asm on top of mob. Do not use the -f option with push, please. In

Re: [Tinycc-devel] NetBSD/aarch64 Unknown relocation type for got: 299

2021-01-05 Thread grischka
what scenario, and is it desirable always or should it maybe depend on a -fPIE switch or like that? Thanks, --- grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] alinged/unaligned on OpenBSD

2021-01-25 Thread grischka
a solution. But maybe Grischka can solve this? Don't know, maybe look what gcc does? However, with your example, for example, one could take the address int *p = and pass that to other functions, as well. There is not much that the compiler could do. For the 96_nodata_wanted test using 'packed

Re: [Tinycc-devel] Assembly instructions like "foo.bar"

2021-01-21 Thread grischka
) and also not 'return' with a void value (in asm_opcode()); ---grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] Assembly instructions like "foo.bar"

2021-01-22 Thread grischka
Danny Milosavljevic wrote: Since I don't have that compiler, please test. Works, thanks. Looks very good btw, the arm-asm ... --- grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc

Re: [Tinycc-devel] Beginner's tinycc questions

2021-01-22 Thread grischka
'working' example of what you have in mind. As if the compiler that has all the experimental features that it needs to run it, already would exist. --- grischka Thanks. Ivan ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https

Re: [Tinycc-devel] enforced immutability - proposed research project

2021-01-19 Thread grischka
Wwrite-strings. Hmm. Maybe if we had a feature to find any currently non-const declared objects that still are not modified anywhere (and therefor could be marked const), maybe that could be useful... --- grischka Some people like the idea [1][2]. Such a thing had been implemented for Common Lis

Re: [Tinycc-devel] BUG "make install" always strips

2021-01-13 Thread grischka
(CFLAGS/LDFLAGS += -g) and ./configure (LDFLAGS += -s) Any reason why we need more than that? --- grischka ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] issues/questions with stddef.h which comes with tcc

2021-01-02 Thread grischka
in progress for something, the 'git add --amend ...' option can be very helpful to correct mistakes or review an idea already before one would push the push button finally. For happiness with less #ifdefs, --- grischka Christian. ___ Tinycc-devel

Re: [Tinycc-devel] alinged/unaligned on OpenBSD

2021-01-31 Thread grischka
Herman ten Brugge via Tinycc-devel wrote: I did test this on arm32 openbsd. This is where the problem was. However the above patch fails. I will provide a new patch. I need to add support float/double/long double/pointers for this to work. I would suggest just to forget it. Nobody will ever

Re: [Tinycc-devel] alinged/unaligned on OpenBSD

2021-01-28 Thread grischka
KED; //#endif and run the tests? Btw, do we really need all these gen_increment_tcov ()'s? Can't we just use the inc(0, TOK_INC) for all targets? --- grischka Herman ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.

Re: [Tinycc-devel] Differences between libtcc in "0.9.27 (x86_64 Linux)" and "0.9.27 - 0378168 (x86_64 Linux)" and some unexpected behavior

2021-06-10 Thread grischka
Dwight Schauer wrote: With "0.9.27 - 0378168" I get some unexpected behavior. 1) the byte sizes of compilation units (separate libtcc states) are about 8K larger each than with the stock libtcc runtime memory now gets permissions (r/w/x) set per section more accurately however this means that

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

2021-06-19 Thread grischka
Christian Jullien wrote: All parameters go to the right arguments. So patch looks good What happens if the first condition is false (A = 0) ? -- gr void main() { int A = 1; int B = 2; map_add(10, 20, 30, 40, 50, 60, 70, 80, A && B); } $ tcc foo.c -o foo && ./foo;echo

Re: [Tinycc-devel] Integer constant expression bug

2021-06-19 Thread grischka
Elijah Stone wrote: Actually, the problem is with the CEXPR_EH macro; it always returns 1. If I replace the definition with '#define CEXPR_EH __builtin_constant_p', all of your tests pass. I guess the problem is that the behaviour of this clause (from 6.5.15p6) is not correctly implemented:

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

2021-06-21 Thread grischka
Pursuer via Tinycc-devel wrote: Christian Jullien wrote: Without the patch, it also coredumps on Risc-V: So you mean the second patch can fix this? As I haven't got other complain or comment about the patchs yet. Should I push the second patch? While reasons or explanations may vary,

Re: [Tinycc-devel] TinyCC -std=c2x support?

2021-06-21 Thread grischka
Christian Jullien wrote: Hi no one complains or comments, I suggest you push your patches end of June Since when do we tell other people what to do and until when, in tinycc? -- gr ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org

Re: [Tinycc-devel] Plan9 extensions

2021-05-18 Thread grischka
Elijah Stone wrote: I should clarify: these are not extensions to make tcc run on plan9 or target it. They are just regular extensions which happen to originate in plan9. They're also implemented by gcc; see documentation at https://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html While nicely

[Tinycc-devel] tinycc personal mob branches

2021-07-05 Thread grischka
eature (note the ':') In any case, all existing remote branches including personal ones can be seen with $ git ls-remote Last, if you want to try this, much likely your username won't be 'fred'. ;) --- grischka ___ Tinycc-devel mailing list Tinycc-d

<    2   3   4   5   6   7   8   9   >