[LLVMbugs] [Bug 23482] New: revision 236900 appears to break compilation on Solaris
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 11 11:02:56 PDT 2015
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: unassignedbugs at nondot.org
Reporter: norm.jacobs at oracle.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150511/f98155da/attachment.html>
More information about the llvm-bugs
mailing list