summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | Doc: updated list of warnings not enabled by -Wall (#4817)Paolo Capriotti2012-04-271-1/+3
| | | | |
| | * | | Flags documentation: -fwarn-unrecognized-pragmas is enabled by -Wall (#6050)Paolo Capriotti2012-04-271-1/+0
| | | | |
| * | | | Fix build on OS XIan Lynagh2012-04-272-10/+16
| | | | |
| * | | | Merge branch 'master' of win:c:/ghc/git/cygwin/.Ian Lynagh2012-04-274-48/+21
| |\ \ \ \
| | * | | | Win32 build fixIan Lynagh2012-04-271-2/+2
| | | | | |
| | * | | | Fix build on Win32, and handle the FMT_* #defines in a slightly nicer wayIan Lynagh2012-04-272-20/+16
| | | | | |
| | * | | | Simplify format specifiersIan Lynagh2012-04-271-27/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that we can use %zu and %llu on Win32, provided we include PosixSource everywhere we want to use them.
| | * | | | Win32 build fixIan Lynagh2012-04-261-1/+1
| | | | | |
| * | | | | Document the -fwarn-unsupported-calling-conventions flagIan Lynagh2012-04-261-1/+15
| |/ / / /
| * | | | OS X build fixesIan Lynagh2012-04-262-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | OS X doesn't understand 'gnu_printf', so we need to onyl use it conditionally.
| * | | | Fix build on OSX: Use the 'z' format specifier modifier when possibleIan Lynagh2012-04-261-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | On Win32 it's not recognised, so we unfortunately can't use it unconditionally.
| * | | | Build fixesIan Lynagh2012-04-262-1/+3
| | | | |
| * | | | Merge branch 'master' of darcs.haskell.org:/srv/darcs//ghcIan Lynagh2012-04-2626-433/+602
| |\ \ \ \ | | |/ / /
| | * | | Fix lookup of fixity signatures for type operators (#6027)Paolo Capriotti2012-04-262-20/+42
| | |/ / | | | | | | | | | | | | | | | | Extend name lookup for fixity declaration to the TcClsName namespace for all reader names, instead of only those in DataName.
| * | | Merge win:c:/m64/reg8Ian Lynagh2012-04-2630-110/+153
| |\ \ \
| | * | | Add SRC_[CH]C_WARNING_OPTSIan Lynagh2012-04-264-7/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows you to say things like SRC_HC_WARNING_OPTS += -fno-warn-unsupported-calling-conventions in mk/validate.mk. Unfortunately, we can't just use SRC_HC_OPTS, as that gets put before the more specific options (e.g. ghc-options in a .cabal file), many of which include -Wall. So now we have: ghc $(SRC_HC_OPTS) ... options from .cabal etc ... $(SRC_HC_WARNING_OPTS)
| | * | | Win64 build fixIan Lynagh2012-04-261-2/+3
| | | | |
| | * | | Fix warnings on Win64Ian Lynagh2012-04-2622-97/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly this meant getting pointer<->int conversions to use the right sizes. lnat is now size_t, rather than unsigned long, as that seems a better match for how it's used.
| | * | | Add a flag for the unsupported calling convention warningIan Lynagh2012-04-242-3/+9
| | | | |
| | * | | Win64 warning fixIan Lynagh2012-04-241-0/+1
| | | | |
| | * | | It isn't guaranteed that Cabal is warning-freeIan Lynagh2012-04-241-1/+1
| | | | |
| * | | | Merge branch 'master' of darcs.haskell.org:/srv/darcs//ghcIan Lynagh2012-04-244-91/+564
| |\ \ \ \ | | |/ / / | |/| | |
| * | | | A couple of build fixes for Win64Ian Lynagh2012-04-242-2/+5
| | | | |
| * | | | Make the prototype for postHeapEvent match the definitionIan Lynagh2012-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | I've assumed that the definition type is right.
| * | | | Use gnu_printf rather than just printf in function format attributesIan Lynagh2012-04-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | On Windows, gcc thinks that printf means ms_printf, which is not the case when we #define _POSIX_SOURCE 1.
* | | | | Refactoring in CoreUtils/CoreAritySimon Peyton Jones2012-04-275-115/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the previous commit about "aggressive primops" I wanted a new function CoreUtils.exprCertainlyTerminates. In doing this I ended up with a significant refactoring in CoreUtils. The new structure has quite a lot of nice sharing: exprIsCheap = exprIsCheap' isHNFApp exprIsExpandable = exprIsCheap' isConLikeApp exprIsHNF = exprIsHNFlike isHNFApp exprIsConLike = exprIsHNFlike isConLikeApp exprCertainlyTerminates = exprIsHNFlike isTerminatingApp This patch also does some renaming CheapAppFun --> FunAppAnalyser isCheapApp --> isHNFApp isExpandableApp --> isConLikeApp
* | | | | Add -faggressive-primopsSimon Peyton Jones2012-04-275-22/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm experimenting with making GHC a bit more aggressive about a) dropping case expressions if the result is unused Simplify.rebuildCase, CaseElim equation b) floating case expressions inwards FloatIn.fiExpr, AnnCase In both cases the new behaviour is gotten with a static (debug) flag -faggressive-primops. The extra "aggression" is to allow discarding and floating in for side-effecting operations. See the new, extensive Note [PrimOp can_fail and has_side_effects] and Note [Aggressive PrimOps] in PrimoOp. When discarding a case with unused binders, in the lifted-type case it's definitely ok if the scrutinee terminates; previously we were checking exprOkForSpeculation, which is significantly worse. There's a related change to CoreUtils/CoreArity, but I'll put that in the next commit.
* | | | | Debug printing onlySimon Peyton Jones2012-04-271-1/+1
| | | | |
* | | | | Small refactoring in kind generalisation of type declarationsSimon Peyton Jones2012-04-271-23/+35
| | | | |
* | | | | White space and debug printintSimon Peyton Jones2012-04-272-4/+2
| | | | |
* | | | | Use coreBindsStats more than coreBindsSizeSimon Peyton Jones2012-04-264-50/+59
| | | | |
* | | | | Tiny refactorSimon Peyton Jones2012-04-261-2/+1
| |_|/ / |/| | |
* | | | Make the RHS of a generic FamInst use the same type variables as the LHS!Simon Peyton Jones2012-04-261-10/+12
| | | |
* | | | Merge branch 'master' of http://darcs.haskell.org/ghcSimon Peyton Jones2012-04-261-4/+12
|\ \ \ \
| * | | | Allow case expressions with a single alternative to be floated in.Geoffrey Mainland2012-04-261-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change generalizes support for floating in case expressions. Previously, case expression with an unlifted scrutinee and a single DEFAULT alternative were floated in. In particular, this allowed array index operations to be floated in. We also want to float in SIMD unpack primops, which return an unboxed tuple of scalars, thus the generalization.
* | | | | Do not generate derived instances in TH bracketsSimon Peyton Jones2012-04-261-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | See Note [Deriving inside TH brackets] in TcInstDcls Fixes Trac #6005 (again)
* | | | | Remove spurious debug printSimon Peyton Jones2012-04-261-1/+1
|/ / / /
* | | | Improve debug print a bitSimon Peyton Jones2012-04-261-1/+1
| | | |
* | | | Fix a one-character typo (kv1 should be kv2!)Simon Peyton Jones2012-04-261-1/+1
| | | | | | | | | | | | | | | | Fixes Trac #6020, #6044
* | | | Merge branch 'master' of http://darcs.haskell.org/ghcSimon Peyton Jones2012-04-252-7/+6
|\ \ \ \
| * | | | make -XNoImplicitPrelude work properly in GHCiSimon Marlow2012-04-251-6/+5
| | | | |
| * | | | distclean was removing ghc-pwd/dist, should be ghc-pwd/dist-bootSimon Marlow2012-04-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been causing bloat in the src dist for ages. Noticed while looking at #6009, but I don't think this is the bug (./configure always removes ghc-pwd/dist-boot before building ghc-pwd)
* | | | | Fix typoSimon Peyton Jones2012-04-251-1/+1
|/ / / /
* | | | More fixes to kind polymorphism, fixes Trac #6035, #6036Simon Peyton Jones2012-04-257-215/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Significant refactoring in tcFamPats and tcConDecl * It seems that we have to allow KindVars (not just TcKindVars during kind unification. See Note [Unifying kind variables] in TcUnify. * Be consistent about zonkQuantifiedTyVars * Split the TcType->TcType zonker (in TcMType) from the TcType->Type zonker (in TcHsSyn) The clever parameterisation was doing my head in, and it's only a small function * Remove some dead code (tcTyVarBndrsGen)
* | | | Fix looking up of Exact RdrNames, fixes Trac #6005Simon Peyton Jones2012-04-251-9/+34
| | | | | | | | | | | | | | | | See Note [Splicing Exact names] in RnEnv.
* | | | Merge branch 'master' of http://darcs.haskell.org/ghcSimon Peyton Jones2012-04-253-25/+15
|\ \ \ \
| * | | | removed superfluous flag for vectScalarFunGabriele Keller2012-04-252-24/+13
| | |_|/ | |/| |
| * | | Merge branch 'master' of http://darcs.haskell.org//ghcSimon Peyton Jones2012-04-2510-101/+669
| |\ \ \
| * | | | Improve pretty-printingSimon Peyton Jones2012-04-251-1/+2
| | |/ / | |/| |
* | | | Better error messages during sort checking of kind signaturesSimon Peyton Jones2012-04-252-30/+35
| | | | | | | | | | | | | | | | | | | | Fixes Trac #6039, where we have a bogus kind signature data T (a :: j k) = MkT