From: Chris Lattner Date: Thu, 8 Apr 2004 15:18:59 +0000 (+0000) Subject: Disable strict alias analysis in the backend c compiler, as the code we X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a1346a261968886d16f29f1f1da85cace77ff73e;p=oota-llvm.git 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 --- diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index d6fad5f774b..c985b8d5d0d 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());