[GCC-XML] missing builtin for gcc4.3

Brad King brad.king at kitware.com
Mon Dec 15 14:44:12 EST 2008


Marco Clemencic wrote:
> Hi,
> 
> I have source file that uses std::isfinite from cmath.
> gccxml fails on it because __builtin_isfinite is not defined.
> 
> I fixed it locally adding the line:
> 
> #define __builtin_isfinite(x) (1)
> 
> to share/.../GCC/4.3/gccxml_builtins.h

I'm sorry it took me so long to get to this.  I've committed a fix.

/cvsroot/GCC_XML/gccxml/GCC_XML/Support/GCC/4.3/gccxml_builtins.h,v  <--
 GCC_XML/Support/GCC/4.3/gccxml_builtins.h
new revision: 1.2; previous revision: 1.1

Interestingly, the GCC parser seems to hard-code support for these
builtins so they do not even have real signatures.  I just gave them

  bool __builtin_isXXX(...)

signatures which is good enough for the calls in <cmath>.

-Brad




More information about the gccxml mailing list