[cfe-commits] r119345 - in /cfe/trunk/test: CodeGen/lineno-dbginfo.c Preprocessor/clang_headers.c Preprocessor/has_include.c Preprocessor/header_lookup1.c Preprocessor/include-directive2.c Sema/attr-malloc.c Sema/i-c-e.c Sema/shift.c Sema/x86-bui
chandlerc at gmail.com
Sun Nov 21 15:55:26 CST 2010
On Tue, Nov 16, 2010 at 8:19 AM, Rafael Espíndola <
rafael.espindola at gmail.com> wrote:
> On 16 November 2010 05:26, Chandler Carruth <chandlerc at gmail.com> 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
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits