https://llvm.org/bugs/show_bug.cgi?id=23482

            Bug ID: 23482
           Summary: revision 236900 appears to break compilation on
                    Solaris
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 14310
  --> https://llvm.org/bugs/attachment.cgi?id=14310&action=edit
patch to workaround naming conflict between sys/time.h and TargetParser.h

Changset 2369000 appears to introduce a new enumeration into TargetParser.h
+  // Arch extension modifiers for CPUs.
+  enum ArchExtKind {
+    INVALID_ARCHEXT = 0,
+    CRC,
+    CRYPTO,
+    FP,
+    HWDIV,
+    MP,
+    SEC,
+    VIRT,
+    LAST_ARCHEXT
+  };

sys/time.h on Solaris (and possibly other systems) defines "SEC" as "1" using a
cpp macro.  The result is that this fails to compile.

A temporary workaround seems to be to #undef SEC in Solaris.h, but a better
answer might be to prefix the enumeration values so there were no conflicts.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to