Add -fcross-module-specialise flag
authorBen Gamari <ben@smart-cactus.org>
Sun, 28 Jun 2015 16:32:07 +0000 (18:32 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sun, 28 Jun 2015 16:32:07 +0000 (18:32 +0200)
commit302d937782ccb3068244e948d49daff3435e05c0
tree844e8d0859dc0e077c09b3745d4a7e8d3c98206b
parent8d221bbd7af9610ded3071df53adecad72b0fc2e
parent89834d6d99da564aa14e63f2f801f50a615ce322
Add -fcross-module-specialise flag

Summary:
As of 7.10.1 we specialize INLINEABLE identifiers defined in other
modules. This can expose issues (compiler bugs or otherwise) in some cases
(e.g. Trac #10491) and therefore we now provide a way for the user to disable
this optimization.

Test Plan: Successfully compile Splice.hs from Trac #10491.

Reviewers: simonpj, austin

Reviewed By: simonpj

Subscribers: simonpj, thomie, bgamari

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

GHC Trac Issues: #10491
compiler/specialise/Specialise.hs