1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

The CBE generates code which violates the TBAA rules of C, thus we must disable

optimizations based on these rules.  :(

llvm-svn: 7964
This commit is contained in:
Chris Lattner 2003-08-18 22:32:03 +00:00
parent 9f1ec93145
commit de8083df45

View File

@ -168,7 +168,13 @@ int GCC::ExecuteProgram(const std::string &ProgramFile,
if (!SharedLib.empty()) // Specify the shared library to link in... if (!SharedLib.empty()) // Specify the shared library to link in...
GCCArgs.push_back(SharedLib.c_str()); GCCArgs.push_back(SharedLib.c_str());
GCCArgs.push_back("-x"); GCCArgs.push_back("-x");
GCCArgs.push_back((fileType == AsmFile) ? "assembler" : "c"); if (fileType == CFile) {
GCCArgs.push_back("c");
GCCArgs.push_back("-fno-strict-aliasing");
} else {
GCCArgs.push_back("assembler");
}
GCCArgs.push_back(ProgramFile.c_str()); // Specify the input filename... GCCArgs.push_back(ProgramFile.c_str()); // Specify the input filename...
GCCArgs.push_back("-o"); GCCArgs.push_back("-o");
GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file... GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file...