[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues
From: |
Michael Matz |
Subject: |
Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues |
Date: |
Mon, 17 Oct 2016 01:14:25 +0200 (CEST) |
User-agent: |
Alpine 2.20 (LSU 67 2015-01-07) |
Hi,
On Mon, 17 Oct 2016, Michael Matz wrote:
Now, I do agree that we'd want to add a work around for this in tcc. I
think a better work-around than defining __GNUC__ is to define the above
macros instead. __GNUC__ simply has quite some side-effects. (E.g.
after the patch you can't compile programs on some versions of glibc
anymore because it then uses facilities of GNU C that tcc simply doesn't
implement).
For the time being I've committed
http://repo.or.cz/tinycc.git/commitdiff/6fbcc14a5d39ca91228f88a64d68a1f3c2d67293
which restricts the hack to FreeBSD only. If it's necessary for OpenBSD
or NetBSD as well it could be extended. Better would be to restrict the
hack somewhat to only define the necessary macros.
FWIW: the error mode when having __GNUC__ with glibc is that <limits.h>
won't be found, because glibc include_nexts a limits.h that's supposed to
be coming from the compiler, when __GNUC__. TCC doesn't provide one (and
doesn't need to).
Ciao,
Michael.
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, (continued)
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, Christian JULLIEN, 2016/10/10
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, Michael Matz, 2016/10/14
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, Michael Matz, 2016/10/15
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, Christian Jullien, 2016/10/16
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, Michael Matz, 2016/10/16
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues,
Michael Matz <=
- Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, Christian Jullien, 2016/10/17
Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues, Christian JULLIEN, 2016/10/17