|
From: | grischka |
Subject: | Re: [Tinycc-devel] __builtin_expect |
Date: | Tue, 29 May 2012 21:03:18 +0200 |
User-agent: | Thunderbird 2.0.0.24 (Windows/20100228) |
Thomas Preud'homme wrote:
it seems the define for pthread_cleanup_push in glibc uses __builtin_expect if it's not compiled with gcc. Hence, any program including pthread.h fails to compile with tcc. Should we ignore __builtin_expect in tcc or bother glibc developers to special case tcc?A way of ignoring __builtin_expect in very few lines: tcc_define_symbol(s, "__builtin_expect(exp,c)", "exp"); in libtcc.cgrishka, any thought on this one? Are you fine with adding a define or do you prefer upstream to special case tcc?
I'd argue that one cannot expect __builtin_expect to be built-in with compilers other than GCC. --- grischka
[Prev in Thread] | Current Thread | [Next in Thread] |