ghc.git
8 years agoRemove an old "ToDo" comment
Ian Lynagh [Tue, 13 Sep 2011 18:47:28 +0000 (19:47 +0100)] 
Remove an old "ToDo" comment

8 years agochange how Integer's are handled in Core
Ian Lynagh [Mon, 12 Sep 2011 22:24:53 +0000 (23:24 +0100)] 
change how Integer's are handled in Core

We now treat them as literals until CorePrep, when we finally
convert them into the real Core representation. This makes it a lot
simpler to implement built-in rules on them.

8 years agoGHC does build with Alex 3 now - remove the configure trap
Simon Marlow [Tue, 13 Sep 2011 09:59:59 +0000 (10:59 +0100)] 
GHC does build with Alex 3 now - remove the configure trap

However, one perf test fails (parsing001) due to extra allocation.  I
want to look into this so I'm not bumping it just yet.

8 years agoWhen checking FFI types are IO, don't look through abstract newtypes; #3008
Ian Lynagh [Sun, 11 Sep 2011 19:53:18 +0000 (20:53 +0100)] 
When checking FFI types are IO, don't look through abstract newtypes; #3008

8 years agoFix associated type default instantiation check (#5481)
Max Bolingbroke [Sun, 11 Sep 2011 16:09:31 +0000 (17:09 +0100)] 
Fix associated type default instantiation check (#5481)

8 years agoFix warnings in codeGen/CgUtils.hs
Ian Lynagh [Fri, 9 Sep 2011 00:49:54 +0000 (01:49 +0100)] 
Fix warnings in codeGen/CgUtils.hs

8 years agoWhitespace only in codeGen/CgUtils.hs
Ian Lynagh [Thu, 8 Sep 2011 23:02:04 +0000 (00:02 +0100)] 
Whitespace only in codeGen/CgUtils.hs

8 years agoFix warnings in basicTypes/Literal.lhs
Ian Lynagh [Thu, 8 Sep 2011 22:11:37 +0000 (23:11 +0100)] 
Fix warnings in basicTypes/Literal.lhs

8 years agoWhitespace only in basicTypes/Literal.lhs
Ian Lynagh [Thu, 8 Sep 2011 21:59:21 +0000 (22:59 +0100)] 
Whitespace only in basicTypes/Literal.lhs

8 years agoSolve irreducible evidence from itself
Max Bolingbroke [Sat, 10 Sep 2011 13:31:08 +0000 (14:31 +0100)] 
Solve irreducible evidence from itself

8 years agoAdapt vectoriser to disappearing PredTy
Manuel M T Chakravarty [Sat, 10 Sep 2011 07:53:30 +0000 (17:53 +1000)] 
Adapt vectoriser to disappearing PredTy

8 years agoReport bindings that cannot be vectorised
Manuel M T Chakravarty [Sat, 10 Sep 2011 06:55:21 +0000 (16:55 +1000)] 
Report bindings that cannot be vectorised

- Toplevel bindings that cannot be vectorised are reported as a warning
- '-ddump-vt-trace' has even more information about unvectorised code
- Fixed some documentation

8 years agoMerge branch 'no-pred-ty'
Max Bolingbroke [Fri, 9 Sep 2011 12:45:41 +0000 (13:45 +0100)] 
Merge branch 'no-pred-ty'

Conflicts:
compiler/iface/BuildTyCl.lhs
compiler/iface/MkIface.lhs
compiler/iface/TcIface.lhs
compiler/typecheck/TcTyClsDecls.lhs
compiler/types/Class.lhs
compiler/utils/Util.lhs

8 years agoMove exprIsConApp_maybe to CoreSubst so we can use it in VSO. Fix VSO bug with unlift...
Max Bolingbroke [Fri, 9 Sep 2011 12:31:43 +0000 (13:31 +0100)] 
Move exprIsConApp_maybe to CoreSubst so we can use it in VSO. Fix VSO bug with unlifted let bindings.

8 years agoComments, and rename FactTuple to ConstraintTuple
Simon Peyton Jones [Fri, 9 Sep 2011 09:54:32 +0000 (10:54 +0100)] 
Comments, and rename FactTuple to ConstraintTuple

8 years agoRefactoring and code moving-around, following Max's AT-default patch
Simon Peyton Jones [Fri, 9 Sep 2011 09:52:13 +0000 (10:52 +0100)] 
Refactoring and code moving-around, following Max's AT-default patch

8 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Fri, 9 Sep 2011 09:18:02 +0000 (10:18 +0100)] 
Merge branch 'master' of darcs.haskell.org/ghc

8 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Fri, 9 Sep 2011 09:07:46 +0000 (10:07 +0100)] 
Merge branch 'master' of darcs.haskell.org/ghc

8 years agoObey the exprArity invariants! Fixes Trac #5441
Simon Peyton Jones [Fri, 9 Sep 2011 09:04:55 +0000 (10:04 +0100)] 
Obey the exprArity invariants!  Fixes Trac #5441

We were giving arity 2 to a function whose type was
    Int -> Any
That contradicts the exprArity invariant
(see Note [exprArity invariant] in CoreArity), and
in turn led to function whose actually code-generated arity
was different that advertised in the interface file.
Result: seg-fault city.

8 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Fri, 9 Sep 2011 08:12:48 +0000 (09:12 +0100)] 
Merge branch 'master' of darcs.haskell.org/ghc

8 years agoDocumentation for associated type instance defaults
Max Bolingbroke [Tue, 6 Sep 2011 14:14:06 +0000 (15:14 +0100)] 
Documentation for associated type instance defaults

8 years agoImplement associated type defaults
Max Bolingbroke [Tue, 6 Sep 2011 08:04:37 +0000 (09:04 +0100)] 
Implement associated type defaults

Basically, now you can write:

  class Cls a where
    type Typ a
    type Typ a = Just a

And now if an instance does not specify an explicit associated type
instance, one will be generated afresh based on that default. So for
example this instance:

  instance Cls Int where

Will be equivalent to this one:

  instance Cls Int where
    type Typ Int = Just Int

8 years agoRevert "Get rid of associated-type default declarations"
Max Bolingbroke [Sun, 4 Sep 2011 18:09:01 +0000 (19:09 +0100)] 
Revert "Get rid of associated-type default declarations"

This reverts commit 5e102e64d6e581e3ea1f290547fc4be6fce20a00.

8 years agoAdd deepseq as a core package; part of #5468
Ian Lynagh [Thu, 8 Sep 2011 11:09:42 +0000 (12:09 +0100)] 
Add deepseq as a core package; part of #5468

8 years agoAdd deepseq as a core package
Ian Lynagh [Wed, 7 Sep 2011 18:49:24 +0000 (19:49 +0100)] 
Add deepseq as a core package

8 years agoFix typos in comments
Ian Lynagh [Tue, 6 Sep 2011 22:12:56 +0000 (23:12 +0100)] 
Fix typos in comments

8 years agoCorrect a few typos
Daniel Fischer [Wed, 7 Sep 2011 22:48:18 +0000 (00:48 +0200)] 
Correct a few typos

8 years agoAdded repack command to sync-all
Daniel Fischer [Wed, 7 Sep 2011 17:56:59 +0000 (19:56 +0200)] 
Added repack command to sync-all

8 years agoWhitespace only
Daniel Fischer [Wed, 7 Sep 2011 17:52:00 +0000 (19:52 +0200)] 
Whitespace only

8 years agoNuke isCertainlyPredReprTy
Simon Peyton Jones [Wed, 7 Sep 2011 16:44:52 +0000 (17:44 +0100)] 
Nuke isCertainlyPredReprTy

8 years agoComments and layout
Simon Peyton Jones [Wed, 7 Sep 2011 16:44:35 +0000 (17:44 +0100)] 
Comments and layout

8 years agoAdd Constraint as a legitmiate tycon in Kinds
Simon Peyton Jones [Wed, 7 Sep 2011 15:23:00 +0000 (16:23 +0100)] 
Add Constraint as a legitmiate tycon in Kinds

8 years agoConstraintKind -> ConstraintKinds
Simon Peyton Jones [Wed, 7 Sep 2011 15:22:46 +0000 (16:22 +0100)] 
ConstraintKind -> ConstraintKinds

8 years agoMinor refactoring of dsLCoercion, plus comments
Simon Peyton Jones [Wed, 7 Sep 2011 15:19:22 +0000 (16:19 +0100)] 
Minor refactoring of dsLCoercion, plus comments

8 years agoRemove dead code
Simon Peyton Jones [Wed, 7 Sep 2011 08:33:21 +0000 (09:33 +0100)] 
Remove dead code

8 years agoWibble in tickyDynAlloc (only affects -ticky)
Simon Peyton Jones [Wed, 7 Sep 2011 08:33:08 +0000 (09:33 +0100)] 
Wibble in tickyDynAlloc (only affects -ticky)

Fall-out from codegen refactoring, undiscovered because
we don't usually build with -ticky

8 years agoImplement -XConstraintKind
Max Bolingbroke [Tue, 6 Sep 2011 16:22:47 +0000 (17:22 +0100)] 
Implement -XConstraintKind

Basically as documented in http://hackage.haskell.org/trac/ghc/wiki/KindFact,
this patch adds a new kind Constraint such that:

  Show :: * -> Constraint
  (?x::Int) :: Constraint
  (Int ~ a) :: Constraint

And you can write *any* type with kind Constraint to the left of (=>):
even if that type is a type synonym, type variable, indexed type or so on.

The following (somewhat related) changes are also made:
 1. We now box equality evidence. This is required because we want
    to give (Int ~ a) the *lifted* kind Constraint
 2. For similar reasons, implicit parameters can now only be of
    a lifted kind. (?x::Int#) => ty is now ruled out
 3. Implicit parameter constraints are now allowed in superclasses
    and instance contexts (this just falls out as OK with the new
    constraint solver)

Internally the following major changes were made:
 1. There is now no PredTy in the Type data type. Instead
    GHC checks the kind of a type to figure out if it is a predicate
 2. There is now no AClass TyThing: we represent classes as TyThings
    just as a ATyCon (classes had TyCons anyway)
 3. What used to be (~) is now pretty-printed as (~#). The box
    constructor EqBox :: (a ~# b) -> (a ~ b)
 4. The type LCoercion is used internally in the constraint solver
    and type checker to represent coercions with free variables
    of type (a ~ b) rather than (a ~# b)

8 years agoMake an import unconditional
Ian Lynagh [Tue, 6 Sep 2011 16:25:01 +0000 (17:25 +0100)] 
Make an import unconditional

Fixes build on non-Intel/PPC platforms

8 years agoRemove the "Ghastly special case" from dataTcOccs
Max Bolingbroke [Fri, 2 Sep 2011 18:23:56 +0000 (19:23 +0100)] 
Remove the "Ghastly special case" from dataTcOccs

This special case was introduced in 228c4743 to
'Fix problem with :i for (:)' but the associated Note
doesn't explain why (:) deserves this treatment but not
e.g. Left and Right.

Removing the special case does not break anything
(including :i (:)) so I guess this is no longer necessary.

Conflicts:

compiler/rename/RnEnv.lhs

8 years agoZap demand information if the simplifier reduces the arity: fixes CoreLint failure
Max Bolingbroke [Mon, 22 Aug 2011 19:24:30 +0000 (20:24 +0100)] 
Zap demand information if the simplifier reduces the arity: fixes CoreLint failure

8 years agoFix handing of CoVars in SetLevels: it wasn't renaming occurrences of case-bound...
Max Bolingbroke [Wed, 17 Aug 2011 21:53:47 +0000 (22:53 +0100)] 
Fix handing of CoVars in SetLevels: it wasn't renaming occurrences of case-bound coercion variabes

Conflicts:

compiler/simplCore/SetLevels.lhs

8 years agoThere are no predicate kinds in external core: remove Keq
Max Bolingbroke [Sun, 14 Aug 2011 07:14:10 +0000 (08:14 +0100)] 
There are no predicate kinds in external core: remove Keq

8 years agoRemove bogus isCoercionKind function and its sole use
Max Bolingbroke [Sun, 14 Aug 2011 07:06:17 +0000 (08:06 +0100)] 
Remove bogus isCoercionKind function and its sole use

8 years agoAdd missing import (fixes #5460).
Erik de Castro Lopo [Mon, 5 Sep 2011 10:24:51 +0000 (20:24 +1000)] 
Add missing import (fixes #5460).

8 years agoAdd s390x to list of supported architectures
Joachim Breitner [Mon, 5 Sep 2011 07:37:24 +0000 (09:37 +0200)] 
Add s390x to list of supported architectures

8 years agofix GhcUnregisterised default, and add kfreebsdgnu to OsSupportsGhci
Simon Marlow [Tue, 6 Sep 2011 13:00:51 +0000 (14:00 +0100)] 
fix GhcUnregisterised default, and add kfreebsdgnu to OsSupportsGhci
(#5441)

8 years agofix the eager-blackholing check, which I inadvertently broke in
Simon Marlow [Tue, 6 Sep 2011 11:57:26 +0000 (12:57 +0100)] 
fix the eager-blackholing check, which I inadvertently broke in
1c2f89535394958f75cfb15c8c5e0433a20953ed (symptom was broken
biographical profiling, see #5451).

8 years agoMinor wording change
Simon Peyton Jones [Mon, 5 Sep 2011 16:33:14 +0000 (17:33 +0100)] 
Minor wording change

8 years agoFix Trac #5455: be a bit more selective in mkSelectorBinds
Simon Peyton Jones [Mon, 5 Sep 2011 16:33:04 +0000 (17:33 +0100)] 
Fix Trac #5455: be a bit more selective in mkSelectorBinds

See Note [mkSelectorBinds]

8 years agoEliminate isHiBootTyCon in favour of isAbstractTyCon
Simon Peyton Jones [Mon, 5 Sep 2011 08:38:50 +0000 (09:38 +0100)] 
Eliminate isHiBootTyCon in favour of isAbstractTyCon

Fixes Trac #5456, which was a buglet arising from

  commit de9b85fa3fb6d4cd593366e1f2383cd0b492c056
  Author: Simon Peyton Jones <simonpj@microsoft.com>
  Date:   Fri Sep 2 17:43:53 2011 +0100

    Export a tiny bit more info with AbstractTyCon (fixes #5424)

It only shows up when compiling with -O0!

8 years agoLink the de-synonym change to ticket Trac #5458
Simon Peyton Jones [Mon, 5 Sep 2011 07:32:07 +0000 (08:32 +0100)] 
Link the de-synonym change to ticket Trac #5458

8 years agoFix two bugs in caes-floating (fixes Trac #5453)
Simon Peyton Jones [Mon, 5 Sep 2011 07:21:23 +0000 (08:21 +0100)] 
Fix two bugs in caes-floating (fixes Trac #5453)

The problem is documented in the ticket.  The patch
does two things

1. Make exprOkForSpeculation return False for a non-exhaustive case

2. In SetLevels.lvlExpr, look at the *result* scrutinee, not the
   *input* scrutinee, when testing for evaluated-ness

8 years agoComments only
Simon Peyton Jones [Mon, 5 Sep 2011 07:18:10 +0000 (08:18 +0100)] 
Comments only

8 years agoDe-synonym the types of the abtracted term variables in SpecConstr
Simon Peyton Jones [Mon, 5 Sep 2011 07:16:58 +0000 (08:16 +0100)] 
De-synonym the types of the abtracted term variables in SpecConstr

This was making Text.PrettyPrint.HughesPJ give a lint-bug
when the libraries were compiled with -O2.

It's all caused by phantom type synonyms (which are, generally
speaking, a royal pain).  The fix is simple, but a bit brutal.

See Note [Free type variables of the qvar types].

8 years agoExport a tiny bit more info with AbstractTyCon (fixes #5424)
Simon Peyton Jones [Fri, 2 Sep 2011 16:43:53 +0000 (17:43 +0100)] 
Export a tiny bit more info with AbstractTyCon (fixes #5424)

When we compile -O0 we put type constructors in the interface file
without their data constructors -- an AbstractTyCon.  But in a
client module, to give good pattern-match exhaustiveness warnings,
we need to know the difference between a data type and a newtype.
(The latter can be coerced to another type, but a data type can't.)
See Note [Pruning dead case alternatives] in Unify.

Because we weren't conveying this info, we were getting bogus
warnings about inexhaustive patterm matches with GADTs, and
(confusingly) these warnings woudl come and go depending on
whether you were compiling with -O.

This patch makes AbstractTyCon carry a flag indicating whether
the type constructor is "distinct"; two distinct TyCons cannot
be coerced into eachother (except by unsafeCoerce, in which case
all bets are off).

HEADS UP: interface file format changes slightly, so you need
to make clean.

8 years agoBacktrack on the wierd special case of data family exports
Simon Peyton Jones [Fri, 2 Sep 2011 16:34:00 +0000 (17:34 +0100)] 
Backtrack on the wierd special case of data family exports

I had second thoughts on the "data family export" question.
Rather than add a wierd special case it seems better to be
simple and consistent.  So this patch

 * Reverts to the simple behaviour:
     module M where { ... }
   exports only what is defined in M, ie NOT any
   imported data families.
   See Note [Exports of data families] in RnNames

* Documents this behaviour in the user manual, and clarifies
  what was there before.

8 years agoMerge branch 'master' of http://darcs.haskell.org/ghc
Simon Peyton Jones [Fri, 2 Sep 2011 08:29:56 +0000 (09:29 +0100)] 
Merge branch 'master' of darcs.haskell.org/ghc

8 years agoSome minor wibbling in printing source locations
Simon Peyton Jones [Fri, 2 Sep 2011 08:25:25 +0000 (09:25 +0100)] 
Some minor wibbling in printing source locations

I found that an imported instance was getting printed with <no
location info>.  Fixing this pushed me into a bit more refactoring
than I intended, but it's all small aesthetic stuff, nothing
fundamental.  Caused some error message to change as a result.

I removed pprDefnLoc from the GHC API because it doesn't seem to be
used.  Name.pprNamedefnLoc and pprDefinedAt are probably more useful
anyway.

8 years agoTwo bugs in rnExports (fixes Trac #5445)
Simon Peyton Jones [Fri, 2 Sep 2011 08:20:45 +0000 (09:20 +0100)] 
Two bugs in rnExports (fixes Trac #5445)

When constructing export lists, data families pose an awkward problem,
documented in Note [Exports of data families] in RnNames.  Consider

   module M where
             import X( D )
             data instance D Int = M1 | M2

Here M exports M1 and M2, obviously, but does it export D?  It would
not usually do so, but if we don't then no one can import M selectively
like this:
           import M( D(M1,M2) )

So we compromise and export D too.  But I made two mistakes

a) Didn't check for conflicts between the extra export of X.D
   and any other exports called "D"

b) Did the extra export for imported things too, not just ones defined
   in this module (ie made the compromise apply much more widely than
   necessary)

This made Programatica (a complex project) break in an obscure
way; (b) caused an export conflict, (a) meant that the conflict
was not spotted, which in turn caused later chaos.

Anyway the fix is easy, and is documented in the Note.

8 years agoMore debug info on provenance with -dppr-debug
Simon Peyton Jones [Fri, 2 Sep 2011 08:11:50 +0000 (09:11 +0100)] 
More debug info on provenance with -dppr-debug

8 years agoMake Convert.thRdrName give a decent source locations (fixes Trac #5434)
Simon Peyton Jones [Fri, 2 Sep 2011 08:11:24 +0000 (09:11 +0100)] 
Make Convert.thRdrName give a decent source locations (fixes Trac #5434)

thRdrName is used to construct *binders*, and some of them are
Exact RdrNames, so we need to give them a decent source location.

8 years agoFix a buglet in reification of tuples (fixes Trac #5452)
Simon Peyton Jones [Fri, 2 Sep 2011 08:08:21 +0000 (09:08 +0100)] 
Fix a buglet in reification of tuples (fixes Trac #5452)

8 years agoIncrease the "context stack depth" to 200 (from 20)
Simon Peyton Jones [Fri, 2 Sep 2011 08:07:46 +0000 (09:07 +0100)] 
Increase the "context stack depth" to 200 (from 20)

This parameter controls the allowed depth of reasoning in the
type constraint solver.  Perfectly well-behaved programs can
use deep stacks, and 20 is obviously too small.  (Indeed, if
you don't have UndecidableInstances, the constraint solver
is supposed to terminate, so no limit should be needed.)

Responding to Trac #5395 this patch increases the default
to 200.

8 years agoAdd a flag -fno-ghci-history
Ian Lynagh [Thu, 1 Sep 2011 22:39:26 +0000 (23:39 +0100)] 
Add a flag -fno-ghci-history

Allows you to turn off loading/storing the GHCi command history from/to
the ~/.ghc/ghci_history file.

8 years agoWibble to fix of Trac #5439: deal with the error-recovery case
Simon Peyton Jones [Thu, 1 Sep 2011 14:54:39 +0000 (15:54 +0100)] 
Wibble to fix of Trac #5439: deal with the error-recovery case

Even if we are recovering from a typecheck error, we should still do
the right thing for the "closed" flag.  Otherwise we get an assert
failure, and potentially different behaviour when the user fixes
the original type error.

8 years agoFix #4988: we were wrongly running exception handlers in the
Simon Marlow [Wed, 31 Aug 2011 21:45:01 +0000 (22:45 +0100)] 
Fix #4988: we were wrongly running exception handlers in the
maskUninterruptible state instead of ordinary mask, due to a
misinterpretation of the way the TSO_INTERRUPTIBLE flag works.

Remarkably this must have been broken for quite some time.  Indeed we
even had a test that demonstrated the wrong behaviour (conc015a) but
presumably I didn't look hard enough at the output to notice that it
was wrong.

8 years agoTwo small further extensions to associated types
Simon Peyton Jones [Thu, 1 Sep 2011 08:33:58 +0000 (09:33 +0100)] 
Two small further extensions to associated types

a) Allow multiple AT decls for in a single instance
b) Allow a free type parameter to be instantiated

Example   class C a where
            type T a x :: *

  data A
          data B
          instance C Int where
            type T Int A = Int
            type T Int B = Bool

There is no reason to prohibit this, and as we move
towards a proper kind system it may even be useful.

I also updated the documentation to cover this change
and the previous one of allowing free type parameters
for associated families.

8 years agoFix the trimming of bind_fvs (fixes Trac #5439)
Simon Peyton Jones [Thu, 1 Sep 2011 07:28:36 +0000 (08:28 +0100)] 
Fix the trimming of bind_fvs (fixes Trac #5439)

For the bind_fvs field of FunBind/PatBind, we need to be careful to
keep track of uses of all functions in this module (although not
imported ones).  Moreover in TcBinds.decideGeneralisationPlan we
need to take note of uses of lexically scoped type variables.

These two buglets led to a (useful) assertion failure in TcEnv.

8 years agoImprove debug tracing
Simon Peyton Jones [Thu, 1 Sep 2011 06:55:39 +0000 (07:55 +0100)] 
Improve debug tracing

8 years agoGet rid of associated-type default declarations
Simon Peyton Jones [Thu, 1 Sep 2011 06:55:11 +0000 (07:55 +0100)] 
Get rid of associated-type default declarations

We had the idea that you might be able to define
a default instance for an associated type family, thus:

   class C a where
     type T a :: *
     type T a = a -> a

It's an idea that makes sense, but it was only 10% implemented.
This patch just removes that misleading 10%.

8 years agoComments about type-family parents
Simon Peyton Jones [Thu, 1 Sep 2011 06:53:09 +0000 (07:53 +0100)] 
Comments about type-family parents

See Note [Associated families and their parent class]

8 years agoAllow associated types to have fresh parameters
Simon Peyton Jones [Thu, 1 Sep 2011 06:52:11 +0000 (07:52 +0100)] 
Allow associated types to have fresh parameters

This patch allows

     class C a where
       type T a b :: *
     instance C Int
       type T Int b = b -> b

That is, T has a type index 'b' that is not one of the class
variables.

On the way I did a good deal of refactoring (as usual), especially in
TcInstDcls.tcLocalInstDecl1, which checks for consistent instantiation
of the class instance and the type instance.  Less code, more
expressiveness.  See Note [Checking consistent instantiation]

8 years agoAdd type sigs to functions in RegAlloc.Graph.Spill
Ian Lynagh [Wed, 31 Aug 2011 19:58:01 +0000 (20:58 +0100)] 
Add type sigs to functions in RegAlloc.Graph.Spill

8 years agoWhitespace only in X86.Instr
Ian Lynagh [Wed, 31 Aug 2011 19:33:48 +0000 (20:33 +0100)] 
Whitespace only in X86.Instr

8 years agoSome CPP removal in X86.Regs
Ian Lynagh [Wed, 31 Aug 2011 19:30:55 +0000 (20:30 +0100)] 
Some CPP removal in X86.Regs

8 years agoWhitespace only in X86.Regs
Ian Lynagh [Wed, 31 Aug 2011 19:11:45 +0000 (20:11 +0100)] 
Whitespace only in X86.Regs

8 years agoTurn off lax dependencies by default
Ian Lynagh [Tue, 30 Aug 2011 20:49:00 +0000 (21:49 +0100)] 
Turn off lax dependencies by default

8 years agoStart de-CPPing X86.Regs
Ian Lynagh [Tue, 30 Aug 2011 20:35:26 +0000 (21:35 +0100)] 
Start de-CPPing X86.Regs

8 years agoMore CPP removal
Ian Lynagh [Tue, 30 Aug 2011 19:47:59 +0000 (20:47 +0100)] 
More CPP removal

8 years agoA little more CPP removal
Ian Lynagh [Tue, 30 Aug 2011 19:32:54 +0000 (20:32 +0100)] 
A little more CPP removal

8 years agoBy default, be lax about dependencies on GHC
Ian Lynagh [Sun, 28 Aug 2011 11:23:04 +0000 (12:23 +0100)] 
By default, be lax about dependencies on GHC

There are a number of things which technically depend on GHC (e.g. if
ghc changes then Haskell files may be compiled differently, or Cabal
packages may be configured differently). However, in practice, having
a real dependency on GHC is just a pain: We normally don't want to
spend time recompiling other things while we're working on the
compiler, and even if we did, GHC will normally decide compilation
isn't needed anyway. So by default we use order-only dependencies on
GHC, i.e. GHC must exist, but if it's newer than other targets then
rebuilding is not necessary.

8 years agofix warning
Simon Marlow [Fri, 26 Aug 2011 21:18:45 +0000 (22:18 +0100)] 
fix warning

8 years agoClean up the handling of the import and :module commands in GHCi
Simon Marlow [Fri, 26 Aug 2011 15:36:05 +0000 (16:36 +0100)] 
Clean up the handling of the import and :module commands in GHCi

Previously we remembered the whole history of commands and replayed
them on every :load/:reload, which lead to some non-linear performance
characteristics (#5317).  The handling of the implicit Prelude import
and the implicit imports of recently loaded modules was also
complicated and wrong in various obscure ways.

The Prelude import works just like the implicit Prelude import in a
Haskell module: it can be overriden with an explicit Prelude
import.

I have added a new ":show imports" command to show which imports are
currently in force.

Prelude> :show imports
import Prelude -- implicit
Prelude> import Prelude ()
Prelude> :show imports
import Prelude ()
Prelude> map

<interactive>:0:1: Not in scope: `map'
Prelude>

Full documentation in the User's Guide.

There are various other little tweaks and improvements, such as when a
module is imported with 'as', we now show the 'as' name in the prompt
rather than the original name.

8 years agosimpleImportDecl: default to unsafe, not safe
Simon Marlow [Fri, 26 Aug 2011 15:15:11 +0000 (16:15 +0100)] 
simpleImportDecl: default to unsafe, not safe

8 years agoexport HscEnv
Simon Marlow [Wed, 6 Jul 2011 19:37:29 +0000 (20:37 +0100)] 
export HscEnv

8 years agoFollow ghc-prim changes
Ian Lynagh [Fri, 26 Aug 2011 20:37:26 +0000 (21:37 +0100)] 
Follow ghc-prim changes

8 years agoMake popCnt# primop work with dynamic compilation
Johan Tibell [Thu, 25 Aug 2011 13:02:58 +0000 (15:02 +0200)] 
Make popCnt# primop work with dynamic compilation

8 years agotypos
Simon Marlow [Thu, 25 Aug 2011 10:11:58 +0000 (11:11 +0100)] 
typos

8 years agodisable a debug trace
Simon Marlow [Thu, 25 Aug 2011 10:11:50 +0000 (11:11 +0100)] 
disable a debug trace

8 years agofix warning
Simon Marlow [Wed, 24 Aug 2011 15:50:55 +0000 (16:50 +0100)] 
fix warning

8 years agorefactoring and fixing the stage 2 compilation
Simon Marlow [Wed, 24 Aug 2011 15:15:50 +0000 (16:15 +0100)] 
refactoring and fixing the stage 2 compilation

8 years agoRefactoring/renaming
Simon Marlow [Wed, 24 Aug 2011 12:42:57 +0000 (13:42 +0100)] 
Refactoring/renaming

8 years agoget rid of the cg_rep field of CgIdInfo, which wasn't used anywhere
Simon Marlow [Wed, 24 Aug 2011 11:39:46 +0000 (12:39 +0100)] 
get rid of the cg_rep field of CgIdInfo, which wasn't used anywhere

8 years agoeliminate ConInfo
Simon Marlow [Wed, 24 Aug 2011 10:58:43 +0000 (11:58 +0100)] 
eliminate ConInfo

8 years agoRemove another use of mkConInfo
Simon Marlow [Wed, 24 Aug 2011 10:13:40 +0000 (11:13 +0100)] 
Remove another use of mkConInfo

8 years agobugfix: static constructors were being given the dynamic info table pointer
Simon Marlow [Wed, 24 Aug 2011 09:39:23 +0000 (10:39 +0100)] 
bugfix: static constructors were being given the dynamic info table pointer

8 years agoRefactoring: reduce usage of mkConInfo, with a view to killing it
Simon Marlow [Wed, 24 Aug 2011 09:38:58 +0000 (10:38 +0100)] 
Refactoring: reduce usage of mkConInfo, with a view to killing it

8 years agoremove duplicate dump
Simon Marlow [Tue, 23 Aug 2011 15:08:43 +0000 (16:08 +0100)] 
remove duplicate dump

8 years agorewrite branchChainElim; other refactoring in CmmContFlowOpt
Simon Marlow [Tue, 23 Aug 2011 15:08:34 +0000 (16:08 +0100)] 
rewrite branchChainElim; other refactoring in CmmContFlowOpt

8 years agoavoid record selector error on closureProf
Simon Marlow [Tue, 23 Aug 2011 15:07:22 +0000 (16:07 +0100)] 
avoid record selector error on closureProf