[GHC] #16354: LLVM Backend generates invalid assembly.

GHC ghc-devs at haskell.org
Tue Feb 26 20:05:29 UTC 2019


#16354: LLVM Backend generates invalid assembly.
-------------------------------------+-------------------------------------
        Reporter:  AndreasK          |                Owner:  (none)
            Type:  bug               |               Status:  upstream
        Priority:  high              |            Milestone:
       Component:  Compiler (LLVM)   |              Version:  8.9
      Resolution:                    |             Keywords:  CodeGen
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by AndreasK):

 The problem with mc is that we can get assembly with CPP directives in it:

 {{{
 8:52 PM AndreasK> bgamari: our generated assembly contains CPP directives?
 8:55 PM <bgamari> no, but a TH splice may have added an assembler source
 file that does
 }}}


 We could (depending on the backend used) invoke gcc on the generated
 assembly just for CPP and the pass the result on to as/llvm-mc depending
 on the backend.


 {{{
 AndreasK> bgamari: We could pipe assembly through the gcc CPP, and then
 pipe the result through as/llvm-mc depending on backend though right?
 9:00 PM <bgamari> AndreasK, yes
 9:00 PM we already have support for invoking the preprocessor
 9:00 PM so really this is likely just a matter of plumbing
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16354#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list