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

_______________________________________________
gccxml mailing list
[email protected]
http://www.gccxml.org/mailman/listinfo/gccxml

Reply via email to