Another issue I've ran into when trying to compile Mozilla:
c:/mozilla-release/js/src/ion/CodeGenerator.cpp(300): error: expected a ";"
bool accept(CodeGenerator *codegen) MOZ_FINAL MOZ_OVERRIDE {
^
c:/mozilla-release/js/src/ion/CodeGenerator.cpp(339): error: class "js::ion::OutOfLineTestObject" has no member "setInputAndTargets"
ool->setInputAndTargets(objreg, ifTruthy, ifFalsy, scratch);
I've attached the compile log and all the necessary files. This occurs on ICC 13 Update 2 and 5 from what I've tested. Compiles without an issue with Visual Studio 10 and 12. I've checked for a missing ; and no other errors are present.
Link Copied
Sergey Kostrov wrote:
>>...CodeGenerator.cpp(339): error: class "js::ion::OutOfLineTestObject" has no member "setInputAndTargets"
The 'has no member' means that the method "setInputAndTargets" is "if-def"ed and some macro is Not defined when Intel C++ compiler is used.
But shouldn't ICC be a drop in replacement for MSVC? Also Mozilla doesn't differentiate between MSVC and ICC and treats them the same.
A drop in replacement doesn't mean its going to work out of the box for projects which make use of ifdefs that depend on compiler specifc defines. Check this out for some info on getting mozilla to build with icpc on windows with msvc: https://code.google.com/p/pcxfirefox/wiki/MozillaBuiltICC
For more complete information about compiler optimizations, see our Optimization Notice.