Opened 5 months ago

Closed 5 months ago

#8526 closed bug (fixed)

-fforce-recomp does not re-summarise modules

Reported by: parcs Owned by: parcs
Priority: normal Milestone:
Component: Driver Version: 7.6.3
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: T8526 Blocked By:
Blocking: Related Tickets:

Description

-fforce-recomp should re-summarise modules so that the source file will get re-preprocessed. Otherwise a modification to an #include'd file will not get picked up.

$ ghci -XCPP -v0 -fforce-recomp
Prelude> :! echo '#include "A.hs-inc"' > A.hs
Prelude> :! echo 'a = True' > A.hs-inc
Prelude> :l A
*Main> a
True
*Main> :! echo 'a = False' > A.hs-inc
*Main> :r
*Main> a
True
*Main>

Attachments (2)

0001-Test-Trac-8526.patch (1.7 KB) - added by parcs 5 months ago.
0001-Always-re-summarise-modules-when-fforce-recomp-is-se.patch (1.5 KB) - added by parcs 5 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 5 months ago by parcs

  • Owner set to parcs

Changed 5 months ago by parcs

comment:2 Changed 5 months ago by parcs

  • Status changed from new to patch

Does this patch look OK?

Last edited 5 months ago by parcs (previous) (diff)

comment:3 Changed 5 months ago by thoughtpolice

LGTM Patrick - please commit.

comment:4 Changed 5 months ago by Patrick Palka <patrick@…>

In 08580616db410325dec7c5ebf36fef64b46a8f10/ghc:

Always re-summarise modules when -fforce-recomp is set

Fixes #8526

comment:5 Changed 5 months ago by Patrick Palka <patrick@…>

comment:6 Changed 5 months ago by parcs

  • Resolution set to fixed
  • Status changed from patch to closed
  • Test Case set to T8526
Note: See TracTickets for help on using tickets.