mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Right, we break strict aliasing requirements. Make sure to disable strict
aliasing in the C compiler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
775cbdd51a
commit
121f09fb05
@ -176,15 +176,16 @@ int llvm::GenerateCFile(const std::string &OutputFile,
|
||||
const std::string &InputFile,
|
||||
const std::string &llc, char ** const envp) {
|
||||
// Run LLC to convert the bytecode file into C.
|
||||
const char *cmd[7];
|
||||
const char *cmd[8];
|
||||
|
||||
cmd[0] = llc.c_str();
|
||||
cmd[1] = "-march=c";
|
||||
cmd[2] = "-f";
|
||||
cmd[3] = "-o";
|
||||
cmd[4] = OutputFile.c_str();
|
||||
cmd[5] = InputFile.c_str();
|
||||
cmd[6] = 0;
|
||||
cmd[3] = "-fno-strict-aliasing";
|
||||
cmd[4] = "-o";
|
||||
cmd[5] = OutputFile.c_str();
|
||||
cmd[6] = InputFile.c_str();
|
||||
cmd[7] = 0;
|
||||
return ExecWait(cmd, envp);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user