[GHC] #10667: '-g' option generates invalid assembly when '*/*' operator is used

GHC ghc-devs at haskell.org
Sat Jul 25 16:51:43 UTC 2015


#10667: '-g' option generates invalid assembly when '*/*' operator is used
-------------------------------------+-------------------------------------
        Reporter:  slyfox            |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.2-rc2
  (CodeGen)                          |
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  crash                              |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by scpmw):

 Well spotted - should have seen that one coming. Here's what the GNU
 assembler documentation says:

    The line comment character is target specific, and some targets
 multiple comment characters. Some targets also have line comment
 characters that only work if they are the first character on a line. Some
 targets use a sequence of two characters to introduce a line comment. Some
 targets can also change their line comment characters depending upon
 command line options that have been used.

 According to the same documentation, the line comment character for x86 is
 apparently `#`, while it's `@` for ARM. So possible, but a bit messy.

 I think the better course of action here would be to just "escape" the
 name - or maybe just drop the comment in the first place if the name looks
 problematic. It's not really that useful anyway.

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


More information about the ghc-tickets mailing list