diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-08 15:14:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-08 15:14:43 +0000 |
commit | 177fe8d82fe2bffaa31ac1c07e6d5aa3d857048b (patch) | |
tree | ce59a4405f0219ec5287b508e2e0bc3eb88b21e4 /llvm/tools/gccld/GenerateCode.cpp | |
parent | 4d25c86b526edf3c81a30cab37fde7cb63ada5f1 (diff) | |
download | bcm5719-llvm-177fe8d82fe2bffaa31ac1c07e6d5aa3d857048b.tar.gz bcm5719-llvm-177fe8d82fe2bffaa31ac1c07e6d5aa3d857048b.zip |
Right, we break strict aliasing requirements. Make sure to disable strict
aliasing in the C compiler.
llvm-svn: 12772
Diffstat (limited to 'llvm/tools/gccld/GenerateCode.cpp')
-rw-r--r-- | llvm/tools/gccld/GenerateCode.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/tools/gccld/GenerateCode.cpp b/llvm/tools/gccld/GenerateCode.cpp index d6fad5f774b..7a8f54ada09 100644 --- a/llvm/tools/gccld/GenerateCode.cpp +++ b/llvm/tools/gccld/GenerateCode.cpp @@ -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); } |