<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 2:55 PM, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank" class="cremed">richard@metafoo.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Jul 2, 2013 at 1:59 PM, Jyotsna Verma <<a href="mailto:jverma@codeaurora.org" class="cremed">jverma@codeaurora.org</a>> wrote:<br>

>>I would still like an explanation of the nature of the failure. Which<br>
> header or<br>
>>#include is problematic? Also, this isn't really a C++11 test, it's a test<br>
> for our<br>
>>built-in headers, and even if it were, I don't see why it'd be reasonable<br>
> to<br>
>>XFAIL C++11 tests for Hexagon.<br>
><br>
> We do define __STDC_HOSTED__ for Hexagon which probably shouldn't be.<br>
> The test includes stdint.h file from lib/Headers which in turn includes<br>
> system stdint.h if __STDC_HOSTED__ macro is defined. In addition, it also<br>
> requires some other system headers such as features.h, bits/predefs.h and<br>
> gnu/stubs-32.h. There is no way for us to make these header files available<br>
> in the build area.<br>
<br>
</div>Does this help:<br>
<br>
Index: test/Headers/cxx11.cpp<br>
===================================================================<br>
--- test/Headers/cxx11.cpp      (revision 185111)<br>
+++ test/Headers/cxx11.cpp      (working copy)<br>
@@ -1,5 +1,5 @@<br>
-// RUN: %clang -fsyntax-only -std=c++11 %s<br>
-// RUN: %clang -fsyntax-only -std=c++11 -fmodules %s<br>
+// RUN: %clang -ffreestanding -fsyntax-only -std=c++11 %s<br>
+// RUN: %clang -ffreestanding -fsyntax-only -std=c++11 -fmodules %s</blockquote></div><br>FWIW, any test that includes stdint.h should use -ffreestanding. Not sure how this worked on platforms *other* than Hexagon...</div>
</div>