[cfe-commits] [PATCH] Support gcc 4.4 C++0x builtins

John Bytheway jbytheway at gmail.com
Wed Feb 9 01:53:06 PST 2011


The attached patch adds support for the builtins defined in gcc 4.4's
<cmath> header in C++0x mode.  There is ample opportunity for error in
this patch, but it's been checked by both me and Marius Wachtler.  See

http://llvm.org/bugs/show_bug.cgi?id=9138

(I was asked to send the patch here after attaching it to the bug; this
one corrects the error Marius noticed in the one attached to the bug.)

Note that I've added builtins purely on the basis of error messages
(either because their lack was indicated by an error, or because they
were the "<foo>" version where the "<foo>f" and "<foo>l" versions
appeared in errors).  I haven't looked at the standards to see what
functions really should exist.

This work was inspired by
<http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-February/013168.html>
and related messages.

John Bytheway
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: builtins.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110209/b238a37d/attachment.ksh>


More information about the cfe-commits mailing list