On Tue, Nov 16, 2010 at 8:19 AM, Rafael EspĂ­ndola <
[email protected]> wrote:

> On 16 November 2010 05:26, Chandler Carruth <[email protected]> wrote:
> > Author: chandlerc
> > Date: Tue Nov 16 04:26:08 2010
> > New Revision: 119345
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=119345&view=rev
> > Log:
> > This really seems like a boring set of fixes to our tests to make them
> more
> > independent of the underlying system. Let me know if any of these are too
> > aggressive.
>
> Would you mind just explaining a bit what you want with
> -ffreestanding? If i understand it correctly, what it does is prevent
> the definition of the builtins (-fno-builtin) and main is not treated
> as a special case.
>

Sorry for the delay here, catching up an email.

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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to