[LLVMbugs] [Bug 3768] New: Clang does -D__STDC_HOSTED__=1, even if -ffreestanding is passed.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Mar 9 14:44:25 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=3768

           Summary: Clang does -D__STDC_HOSTED__=1, even if -ffreestanding
                    is passed.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 3696


Unlike GCC, Clang always defines -D__STDC_HOSTED__=1, even if -ffreestanding is
passed to the compiler. GCC defines -D__STDC_HOSTED__=0 in this case, which
seems to be the way it has to be done.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list