[GHC] #9142: LLVM HEAD rejects aliases used by LLVM codegen
GHC
ghc-devs at haskell.org
Sun May 25 17:15:33 UTC 2014
#9142: LLVM HEAD rejects aliases used by LLVM codegen
-------------------------------------+------------------------------------
Reporter: bgamari | Owner:
Type: bug | Status: new
Priority: high | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by scpmw):
Not quite sure I understand how your patch works - isn't this basically
allocating a bunch of static null-initialized `i8` fields to point to?
That's hardly what we want, even if it compiles.
It would be really interesting to get a statement from LLVM people on
this. If they think that we are mis-using aliases, that's reason enough to
do something else. One possible solution that occurred to me was that we
could use type aliases - but instead of writing the definitions at the end
of the session we'd close the file and /prepend/ them. That could be a
cheap and easy way to get the LLVM parser to like us again.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9142#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list