r217694 - Add support for le64.

Nico Weber thakis at chromium.org
Sat Sep 13 21:00:56 PDT 2014


On Sat, Sep 13, 2014 at 9:00 PM, Nico Weber <thakis at chromium.org> wrote:

> On Sat, Sep 13, 2014 at 2:41 PM, JF Bastien <jfb at google.com> wrote:
>
>> Hmm, I'm not sure, I cargo-culted the le32 test and didn't think about
>> the non-hermeticity, but this does seem like a bad issue that I should fix.
>>
>> The test needs va_list, size_t and ptrdiff_t.
>>
>
> Other tests do
>
> typedef __builtin_va_list va_list;
> typedef __SIZE_TYPE__ size_t;
> typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;
>

…one test does `typedef __PTRDIFF_TYPE__ ptrdiff_t;` , that seems a bit
nicer.


>
> for these three, respectively.
>
>
>> Should I try to include clang's headers directly? They use include_next
>> so they will pull in the default headers if I don't prevent them from doing
>> so.
>>
>> I'd obviously fix the le32 test (and any other in this directory). What
>> do you recommend?
>>
>> On Fri, Sep 12, 2014 at 5:37 PM, Nick Lewycky <nlewycky at google.com>
>> wrote:
>>
>>> On 12 September 2014 15:53, Nick Lewycky <nlewycky at google.com> wrote:
>>>
>>>> On 12 September 2014 10:52, JF Bastien <jfb at google.com> wrote:
>>>>
>>>>> --- cfe/trunk/test/Driver/le64-unknown-unknown.cpp (added)
>>>>> +++ cfe/trunk/test/Driver/le64-unknown-unknown.cpp Fri Sep 12
>>>>> 12:52:47 2014
>>>>> @@ -0,0 +1,137 @@
>>>>> +// RUN: %clang -target le64-unknown-nacl -### %s -emit-llvm-only -c
>>>>> 2>&1 | FileCheck %s -check-prefix=ECHO
>>>>> +// RUN: %clang -target le64-unknown-nacl %s -emit-llvm -S -c -o - |
>>>>> FileCheck %s
>>>>> +
>>>>> +// ECHO: {{.*}} "-cc1" {{.*}}le64-unknown-unknown.c
>>>>> +
>>>>> +// Check platform defines
>>>>> +#include <stdarg.h>
>>>>> +#include <stddef.h>
>>>>>
>>>>
>>>> This test is non-hermetic. Please test only the driver's behaviour in a
>>>> driver test.
>>>>
>>>
>>> ... or is it? We have our own stdarg.h and stddef.h in lib/Headers? Does
>>> this use those?
>>>
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140913/c5b877b0/attachment.html>


More information about the cfe-commits mailing list