[LLVMbugs] [Bug 14422] New: -frewrite-includes should rewrite __has_include and friends

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 23 09:59:14 PST 2012


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

             Bug #: 14422
           Summary: -frewrite-includes should rewrite __has_include and
                    friends
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: dblaikie at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


__has_include makes the compilation host-specific and often fails in a -cc1
environment. This comes up from time to time in clang crash reports because
limits.h makes use of __has_include_next. The resulting file cannot be compiled
with the generated shell script.

I think it's safe to just replace the directive with a constant during
rewriting.

-- 
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