#5782: llvm --enable-tbaa forces LLVM to be 2.9 or above
---------------------------------------+------------------------------------
Reporter: pmonday | Owner: dterei
Type: bug | Status: new
Priority: normal | Component: Compiler (LLVM)
Version: 7.5 | Keywords:
Os: Linux | Architecture: x86_64 (amd64)
Failure: GHC rejects valid program | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------------+------------------------------------
I compiled the latest master against LLVM 2.8. The compile worked
initially, but when using the ghc-stage2 compiler against new code with
the fllvm option, all programs fail to compile with:
opt: Unknown command line argument '--enable-tbaa=true'. Try: 'opt -help'
This is the result of the following flags being added to:
ghc/compiler/main/DriverPipeline.hs
tbaa | dopt Opt_LlvmTBAA dflags = "--enable-tbaa=true"
| otherwise = "--enable-tbaa=false"
--enable-tbaa is available on opt version 2.9 and above only.
It would be helpful if the ./configure script verified that the opt (and
possibly llc) versions were 2.9 or above.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5782>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs