[GHC] #10518: unregisterised GHC generates incorrect 0xUL literals for certain onstants

GHC ghc-devs at haskell.org
Sun Jun 14 15:42:55 UTC 2015


#10518: unregisterised GHC generates incorrect 0xUL literals for certain onstants
-------------------------------------+-------------------------------------
        Reporter:  slyfox            |                   Owner:  slyfox
            Type:  bug               |                  Status:  new
        Priority:  normal            |               Milestone:
       Component:  Compiler          |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:  Phab:D987
-------------------------------------+-------------------------------------

Comment (by Sergei Trofimovich <siarheit@…>):

 In [changeset:"a5084557b0b30faf3f89386ee6ee5a308dae51b1/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="a5084557b0b30faf3f89386ee6ee5a308dae51b1"
 UNREG: fix pprHexVal to emit zeros (#10518)

 jakzale on #ghc reported a build failure
 when ported GHC on a new target.

 The code 'pprHexVal (2^32) W32' emits '0xU'
 which is invalid C.

 I've introduced bug in
     43f1b2ecd1960fa7377cf55a2b97c66059a701ef
 when added literal truncation. That truncation
 is a new source of zeros.

 Signed-off-by: Sergei Trofimovich <siarheit at google.com>

 Test Plan: added test and tested on UNREG ghc

 Reviewers: austin

 Reviewed By: austin

 Subscribers: thomie, bgamari

 Differential Revision: https://phabricator.haskell.org/D987

 GHC Trac Issues: #10518
 }}}

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


More information about the ghc-tickets mailing list