<html>
<head>
<base href="http://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 --- - Unknown options when compiling with Intel compilers"
href="http://llvm.org/bugs/show_bug.cgi?id=17263">17263</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Unknown options when compiling with Intel compilers
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Documentation
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>noloader@gmail.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>Forgive this feature requests (feel free to close it immediately)...
I accidentally stumbled upon this because my environment had previously been
setup for testing under Intel compilers ('export CC=/opt/local/bin/icc; export
CXX=/opt/local/bin/icpc').
*****
When compiling Clang/LLVM/Compiler-RT, I caught two warnings shown below on
just about every file:
llvm[1]: Compiling CrashRecoveryContext.cpp for Release+Asserts build
icpc: command line warning #10006: ignoring unknown option
'-Wcovered-switch-default'
icpc: command line warning #10006: ignoring unknown option
'-Wno-maybe-uninitialized'
I'm also seeing a fair amount of these:
VTableBuilder.cpp(1041): warning #177: function
"<unnamed>::VTableBuilder::address_points_begin" was declared but never
referenced
AddressPointsMapTy::const_iterator address_points_begin() const {
And:
/clang/AST/DeclBase.h(1319): warning #279: controlling expression is constant
(Acceptable &&
!(cast<SpecificDecl>(*Current)->*Acceptable)())))
^
detected during:
instantiation of "void clang::DeclContext...
If interested, LLVM's `configure` could disable those warnings under ICC/ICPC
with the option `-wdXXX`, where XXX is the warning number.
****
My recipe/configure looked like:
...
./configure --enable-optimized --prefix=/usr/local
make -j4
*****
$ /opt/intel/bin/icc -v
icc version 14.0.0 (gcc version 4.6.0 compatibility)
$ /opt/intel/bin/icpc -v
icpc version 14.0.0 (gcc version 4.6.0 compatibility)
*****
Here are some preprocessor macros from `/opt/intel/bin/icpc -E -dM - <
/dev/null | sort`:
#define __ICC 1400
#define __INTEL_COMPILER 1400
#define __INTEL_COMPILER_BUILD_DATE 20130728
#define __INTEL_COMPILER_UPDATE 0
#define __INTEL_OFFLOAD 1
#define __INTEL_RTTI__ 1
And you have to be careful because it also defines GCC stuff:
#define __GNUC__ 4
#define __GNUC_GNU_INLINE__ 1
#define __GNUC_MINOR__ 6
#define __GNUC_PATCHLEVEL__ 0
#define __gnu_linux__ 1
And it also defines for EDG:
#define __EDG_PTRDIFF_TYPE__ long
#define __EDG_SIZE_TYPE__ unsigned long
#define __EDG_VERSION__ 406
*****
I don't know if Intel's compile will produce a workable Clang, but I'm going to
let it run and try it. (I did a quick search but did not see anything about
compiling Clang with ICPC).</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>