tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] __builtin_expect


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] __builtin_expect
Date: Tue, 29 May 2012 12:14:14 +0200
User-agent: KMail/1.13.7 (Linux/3.2.0-2-amd64; KDE/4.7.4; x86_64; ; )

Le vendredi 25 mai 2012 22:57:54, Thomas Preud'homme a écrit :
> Le vendredi 25 mai 2012 20:48:44, Thomas Preud'homme a écrit :
> > Greetings everyone,
> > 
> > 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.c
> 
> > Best regards,
> > 
> > Thomas Preud'homme
> 
> Best regards,
> 
> Thomas Preud'homme

grishka, any thought on this one?

Are you fine with adding a define or do you prefer upstream to special case tcc?

Best regards,

Thomas Preud'homme

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]