<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - revision 236900 appears to break compilation on Solaris"
href="https://llvm.org/bugs/show_bug.cgi?id=23482">23482</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>revision 236900 appears to break compilation on Solaris
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Solaris
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Support Libraries
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>norm.jacobs@oracle.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14310" name="attach_14310" title="patch to workaround naming conflict between sys/time.h and TargetParser.h">attachment 14310</a> <a href="attachment.cgi?id=14310&action=edit" title="patch to workaround naming conflict between sys/time.h and TargetParser.h">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>