Well, if the compiler sees lots of loops that look like this
Code:
for(int x = 0; x < 2; x ++) function();
it might pass something like "--unroll-loops".
I don't think it's your project or whatever. cc1plus.exe is called by GCC/g++, not your IDE/Makefile. You must have incompatible versions or something. Perhaps you have found a bug.
Run g++ --version and cc1plus --version. Just a thought.
Since this problem only happens with one project, perhaps you could ignore it or create something like this (untested).
Code:
// cc1plus.cpp
#include <string>
#include <cstring>
#include <cstdlib>
int main(int argc, char *argv[]) {
std::string command = "C:/path/to/compiler/bin/cc1plus";
for(int x = 1; x < argc; x ++) {
if(std::strcmp(argv[x], "-fsave-memoized")) {
command += ' ';
command += argv[x];
}
}
std::system(command.c_str());
return 0;
}