[LLVMbugs] [Bug 17263] New: Unknown options when compiling with Intel compilers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 16 22:59:33 PDT 2013


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

            Bug ID: 17263
           Summary: Unknown options when compiling with Intel compilers
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Documentation
          Assignee: unassignedclangbugs at nondot.org
          Reporter: noloader at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20130917/027fbcda/attachment.html>


More information about the llvm-bugs mailing list