[cfe-dev] tgmath.h

Sean Silva chisophugis at gmail.com
Tue Jun 9 17:06:50 PDT 2015


On Tue, Jun 9, 2015 at 4:58 PM, Reid Kleckner <rnk at google.com> wrote:

> On Tue, Jun 9, 2015 at 4:32 PM, Sean Silva <chisophugis at gmail.com> wrote:
>
>> On Tue, Jun 9, 2015 at 3:32 AM, Daniel Sanders <Daniel.Sanders at imgtec.com
>> > wrote:
>>
>>> Hi,
>>>
>>> I'm not suitable to review the change but there's a couple things I can
>>> comment on to help you get your change reviewed.
>>>
>>> > That way tgmath can be used with, say, VS 2010, which is the one I am
>>> using,
>>> > so far without any problem.
>>>
>>> I believe there was a policy decision to support only the last two major
>>> releases of GCC, Clang, and Visual Studio and our getting started page (
>>> http://llvm.org/docs/GettingStarted.html#host-c-toolchain-both-compiler-and-standard-library
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_GettingStarted.html-23host-2Dc-2Dtoolchain-2Dboth-2Dcompiler-2Dand-2Dstandard-2Dlibrary&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=N09CH6gsZxeWTz0zwHeswOqrcFCouG-01F8Pfzm6HfY&s=VzSINQr_ZQtepyw1SfoHtE_z6J7Aqwn39BK6IoRN2xw&e=>)
>>> lists Visual Studio 2013 as being the minimum supported version. At the
>>> time the decision was made, this was necessary to be able to migrate to
>>> C++11.
>>>
>>
>> The tgmath.h in clang/lib/Headers/tgmath.h is one of clang's builtin
>> headers. They are used while compiling users' code, not while compiling
>> clang itself. Clang is the only compiler that is ever intended to see these
>> headers.
>>
>
> Yes, the configuration is clang targeting the MSVC 2010 runtime, which is
> supported relatively well. The MSVC 2010 runtime is lacking some math
> functions. I expect Javier will send along a diff which will make it easier
> to identify the issue.
>


Good point. I was just trying to dispel any confusion regarding
host-vs-target system requirements.

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150609/4bfe1421/attachment.html>


More information about the cfe-dev mailing list