[GHC] #9577: String literals are wasting space

GHC ghc-devs at haskell.org
Thu Dec 8 23:45:03 UTC 2016


#9577: String literals are wasting space
-------------------------------------+-------------------------------------
        Reporter:  xnyhps            |                Owner:  xnyhps
            Type:  bug               |               Status:  closed
        Priority:  low               |            Milestone:  8.2.1
       Component:  Compiler (NCG)    |              Version:  7.8.2
      Resolution:  fixed             |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Runtime           |            Test Case:
  performance bug                    |  codeGen/should_run/T9577
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D1290
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"55361b381d14d8752f00d90868fcbe82f86c6b2d/ghc"
 55361b38/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="55361b381d14d8752f00d90868fcbe82f86c6b2d"
 nativeGen: Fix string merging on Windows

 D1290 places string constants in the `.rodata.str` section with `aMS`
 section flags so that the linker can merge them. However, it seems that
 ld doesn't understand these flags. It appears that `gcc
 -fmerge-constants` uses the `dr` flags on Windows. Make GHC do the same.

 Test Plan: Validate on Windows

 Reviewers: xnyhps, austin, Phyx

 Reviewed By: Phyx

 Subscribers: thomie, trommler

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

 GHC Trac Issues: #9577
 }}}

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


More information about the ghc-tickets mailing list