summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-08 15:18:59 +0000
committerChris Lattner <sabre@nondot.org>2004-04-08 15:18:59 +0000
commita1346a261968886d16f29f1f1da85cace77ff73e (patch)
treee705c35209a6f732a34ea26c74984d2b398c753b /tools
parent67e0a341782d7e07bc51677152e5f6c52c7e2f1b (diff)
downloadllvm-a1346a261968886d16f29f1f1da85cace77ff73e.tar.gz
llvm-a1346a261968886d16f29f1f1da85cace77ff73e.tar.bz2
llvm-a1346a261968886d16f29f1f1da85cace77ff73e.tar.xz
Disable strict alias analysis in the backend c compiler, as the code we
generate is not TBAA safe. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccld/GenerateCode.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp
index d6fad5f774..c985b8d5d0 100644
--- a/tools/gccld/GenerateCode.cpp
+++ b/tools/gccld/GenerateCode.cpp
@@ -234,6 +234,7 @@ int llvm::GenerateNative(const std::string &OutputFilename,
// and linker because we don't know where to put the _start symbol.
// GCC mysteriously knows how to do it.
cmd.push_back(gcc.c_str());
+ cmd.push_back("-fno-strict-aliasing");
cmd.push_back("-O3");
cmd.push_back("-o");
cmd.push_back(OutputFilename.c_str());