[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug s
From: |
avih |
Subject: |
Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge) |
Date: |
Sat, 18 Mar 2023 10:34:39 +0000 (UTC) |
This is a second reply to the same email.
On Tuesday, March 14, 2023, 06:02:35 PM GMT+2, Herman ten Brugge <hermantenbrugge@home.nl> wrote:
> Can you change the code in 'tests/tcctest.c' on line 3865 to '#if
> GCC_MAJOR >= 40'.
This works. Specifically, only the __builtin_clrsb* are an issue,
while the others are fine.
> You probably have a very very old clang that does not have some builtin
> support but stll sets GCC_MAJOR to a value >= 4.
'gcc --version' prints:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
'clang --version' is identical, without the 1st line (Configured...).
I don't think that clang 10 is particularly old, but that's
philosophical. It would be nice to be able to use Apple clang 10
to build tcc and pass the tests, but I don't know how to make it work
(I didn't manage to use __has_builtin to detect existence).
FWIW, I did try clang 9 and clang 11 on Debian stable (11.6), and
with both clang versions the tests do pass (and __builtin_clrsb*
exit), so I don't know why Apple's clang 10 doesn't have these.
Either way, it would be nice to be able to pass the tests with
Apple clang 10.
> Not all platforms in tcc are auto detected. For some platforms have set
> configure options like '--with-selinux' or '--config-pie'.
I've pushed autodetection of osx <= 10 to mob as e2152352 .
- avih
- [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), avih, 2023/03/14
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), Herman ten Brugge, 2023/03/14
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), avih, 2023/03/14
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), Herman ten Brugge, 2023/03/14
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), avih, 2023/03/14
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge),
avih <=
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), Herman ten Brugge, 2023/03/18
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), avih, 2023/03/18
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), avih, 2023/03/18
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), Herman ten Brugge, 2023/03/18
- Re: [Tinycc-devel] tcc broken on osx 10.13.6 since 62096265 "Add debug support to macos" (herman ten brugge), avih, 2023/03/18