<div class="gmail_quote">On Tue, Nov 16, 2010 at 8:19 AM, Rafael EspĂ­ndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 16 November 2010 05:26, Chandler Carruth <<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>> wrote:<br>
> Author: chandlerc<br>
> Date: Tue Nov 16 04:26:08 2010<br>
> New Revision: 119345<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=119345&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=119345&view=rev</a><br>
> Log:<br>
> This really seems like a boring set of fixes to our tests to make them more<br>
> independent of the underlying system. Let me know if any of these are too<br>
> aggressive.<br>
<br>
Would you mind just explaining a bit what you want with<br>
-ffreestanding? If i understand it correctly, what it does is prevent<br>
the definition of the builtins (-fno-builtin) and main is not treated<br>
as a special case.<br></blockquote><div><br></div><div>Sorry for the delay here, catching up an email.</div><div><br></div><div>That isn't all that -ffreestanding does. It does imply -fno-builtin, but it also indicates that the standard library may not exist and is equivalent to -fno-hosted. Our builtin headers use the hosted macro to detect which they should attempt to include standard library headers. While -nostdinc would remove the standard directories from the header search path, it wouldn't get our headers to always behave correctly (is my suspicion). Perhaps we should provide both, but that seemed like overkill.</div>
</div>