summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* More DynFlags + SDocsdocIan Lynagh2011-05-2541-122/+142
|
* More DynFlags + SDocIan Lynagh2011-05-251-3/+3
|
* More DynFlags + SDocIan Lynagh2011-05-251-3/+3
|
* More DynFlags + SDocIan Lynagh2011-05-253-6/+7
|
* More DynFlags + SDocIan Lynagh2011-05-252-4/+5
|
* More DynFlags + SDocIan Lynagh2011-05-257-12/+18
|
* More DynFlags + SDocIan Lynagh2011-05-2512-46/+50
|
* More DynFlags + SDocIan Lynagh2011-05-256-14/+16
|
* Start passing DynFlags around inside SDocIan Lynagh2011-05-255-15/+30
|
* Remove unused ghci/ByteCodeFFI.lhsIan Lynagh2011-05-253-30/+1
|
* ghc-pkg: report parser warnings when registering packagesDuncan Coutts2011-05-251-4/+11
|
* Provide the pkgroot value in ghc-pkg dump & describe when necessaryDuncan Coutts2011-05-251-40/+84
| | | | | | | | | | | | | | | | | | | | | | Tools handling installed packages need to be able to interpret the paths which are relative to the ${pkgroot} which means they need to know the value of ${pkgroot}. With ghc-pkg this is not always obvious since ghc-pkg does not currently have any way machine interface for reporting the location of its package dbs (global, user). The solution we have arrived at is simply to emit the pkgroot as an extra field when it is needed. There are two cases: * --no-expand-pkgroot: ghc-pkg dump/describe will not expand the ${pkgroot} var, so it will appear literally in the output and the pkgroot field will be generated so that tools know what value to use for the ${pkgroot}. * --expand-pkgroot: ghc-pkg dump/describe will expand the ${pkgroot} and ${pkgrooturl} vars and will not generate the pkgroot field. The defaults are: * ghc-pkg dump/describe --no-expand-pkgroot * ghc-pkg field --expand-pkgroot
* sizeExpr: multiply all the sizes by 10, except for primops. ThisSimon Marlow2011-05-252-30/+33
| | | | | | | | | makes primops look cheap (but not free), and improves the Repro4.hs example from #4978. While I was making this change I accidentally discovered that increasing the discount for scrutinised constructors was an unambiguous win, so I did that too.
* prog_argv and rts_argv now contain *copies* of the args passed toSimon Marlow2011-05-255-53/+112
| | | | | | setupRtsFlags(), rather than sharing the memory. Previously if the caller of hs_init() passed in dynamically-allocated memory and then freed it, random crashes could happen later (#5177).
* Add stricter ghc-pkg checks on package file/dir/url fieldsDuncan Coutts2011-05-252-11/+26
| | | | | | | The haddock-html and haddock-interface fields are now checked as well. Had to fix up ghc-cabal as it used relative paths for the inplace package's haddock-html. It turns out that these were never used so it could simply be omitted.
* Implement ${pkgroot} spec, allows relocatable registered packagesDuncan Coutts2011-05-252-74/+150
| | | | | | | | | | | | | | Historically ghc implemented relocatable packages by allowing "$topdir" in the package registration info and having ghc expand this with its notion of $topdir. The topdir refers to where ghc itself is installed (specifically the libdir). The ${pkgroot} spec takes this idea and makes it portable. (http://www.haskell.org/pipermail/libraries/2009-May/011772.html) Instead of paths relative to where ghc is installed, they can be relative to the package database itself. Thus it is no longer a ghc-specific idea and can work for package collections other than the global package db.
* Deprecate the ghc-pkg --auto-ghci-libs flagDuncan Coutts2011-05-251-0/+3
| | | | | | It was never a universal solution. It only worked with the GNU linker. It has not been used by Cabal for ages. GHCi can now load .a files so it will not be needed in future.
* ghc-pkg: don't expand ${name}-style env vars by defaultDuncan Coutts2011-05-251-4/+12
| | | | | | | | | | | | | For shell-based build systems the feature is still available as: ghc-pkg register --expand-env-vars Historically, ghc-pkg allowed environment variables to appear in the input files for ghc-pkg register. They are not stored in the package database but are expanded upon registration. This feature helped for build systems based on makefiles and shell scripts. These days the vast majority of such files are generated by Cabal and we don't want any ${name} strings (e.g. perhaps in a package description) getting accidentally interpreted as an environment variable.
* deprecate the -n option (#5180)Simon Marlow2011-05-254-27/+4
|
* fix an integer overflow (#5086), and pre-emptively avoid more of theseSimon Marlow2011-05-253-11/+19
| | | | in the future.
* Disable DatatypeContexts by defaultIan Lynagh2011-05-241-1/+5
| | | | | The Haskell' committee decided to remove datatype contexts from the language: http://www.haskell.org/pipermail/haskell-prime/2011-January/003335.html
* Fix +RTS -G1 (by deleting code, yay!) (#5026)Simon Marlow2011-05-241-10/+0
|
* fix warningSimon Marlow2011-05-241-1/+1
|
* Install the mtl package into the bindist when validating. This allowsSimon Marlow2011-05-241-0/+15
| | | | | some more tests to run (those with reqlib('mtl')) and serves as an extra sanity check on Cabal and the bindist.
* fix warningsSimon Marlow2011-05-241-1/+3
|
* make the change to go_pap suggested in #4978. According to nofib, oneSimon Marlow2011-05-241-6/+4
| | | | | program is improved quite dramatically (fft2 30% less allocation), and everything else was unchanged.
* Assign more accurate code sizes to primops, so that the inliningSimon Marlow2011-05-249-79/+111
| | | | | heuristics work better. Also removed the old unused "needs_wrapper" predicate for primops. This helps with #4978.
* Tweak sizing heurstics for case expressions (see comments).Simon Marlow2011-05-242-10/+41
| | | | | This improves the code generated for the examples in #4978, and appears to make very little difference to nofib.
* Merge branch 'master' of /home/simonmar/ghc-git/.Simon Marlow2011-05-2310-374/+10
|\ | | | | | | | | * 'master' of /home/simonmar/ghc-git/.: Revert "Add capability sets to the event system. Contains code from Duncan Coutts."
| * Revert "Add capability sets to the event system. Contains code from Duncan ↵Duncan Coutts2011-05-2310-374/+10
| | | | | | | | | | | | | | | | Coutts." This reverts commit 58532eb46041aec8d4cbb48b054cb5b001edb43c. Turns out it didn't work on Windows and it'll need some non-trivial changes to make it work on Windows. We'll get it in later once that's sorted out.
* | Added utility to uniquely identify ghc repo statesDavid M Peixotto2011-05-221-0/+248
|/ | | | | | | | This commit adds fingerprint.py python script that can be used to create and restore "fingerprints" of a ghc repo configuration. A fingerprint is a list of (sub-repo, commit) pairs. It can be used in place of git submodules to record and reinstate the entire commit state of the git repos used by ghc.
* Fix small type in user guide.David Terei2011-05-201-1/+1
|
* Make array copy primops inlineJohan Tibell2011-05-197-128/+231
|
* Add array copy/clone primopsDaniel Peebles2011-05-195-2/+171
|
* Merge branch 'master' of http://darcs.haskell.org/ghcDimitrios Vytiniotis2011-05-1911-10/+378
|\
| * add 'sync-all log'Simon Marlow2011-05-181-0/+4
| |
| * Add capability sets to the event system. Contains code from Duncan Coutts.Spencer Janssen2011-05-1810-10/+374
| |
* | Merge remote branch 'origin/master'Dimitrios Vytiniotis2011-05-18161-4965/+6323
|\ \ | |/ | | | | | | | | | | Fixed conflicts in: compiler/typecheck/TcCanonical.lhs compiler/typecheck/TcErrors.lhs compiler/typecheck/TcInteract.lhs
| * FIX #4825: Update User Guide info on DLLs.Duncan Coutts2011-05-172-33/+64
| | | | | | | | | | Original patch by Orphi <MathematicalOrchid@hotmail.com> Plus a few miscellaneous updates from me.
| * Amend comment per Marlow's comments.Edward Z. Yang2011-05-161-15/+16
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
| * Fix build when DEBUG is onMax Bolingbroke2011-05-151-1/+2
| |
| * Use FractionalLit more extensively to improve other pretty printersMax Bolingbroke2011-05-159-42/+57
| |
| * Record the original text along with parsed Rationals: fixes #2245Max Bolingbroke2011-05-1510-19/+48
| |
| * Work around lack of saving volatile registers from unsafe foreign calls.Edward Z. Yang2011-05-155-17/+120
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
| * Make -ddump-to-file truncate existing files.Edward Z. Yang2011-05-152-14/+34
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
| * More aggressive clobber detection with Hp and RegSlot.Edward Z. Yang2011-05-151-3/+19
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
| * Split -ddump-cmmz into many smaller flags.Edward Z. Yang2011-05-152-45/+70
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
| * More aggressive CmmRegOff inlining, and fix failure to inline to assignments.Edward Z. Yang2011-05-153-16/+33
| | | | | | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
| * Generalized assignment rewriting pass.Edward Z. Yang2011-05-152-103/+417
| | | | | | | | | | | | | | This assignment rewriting pass subsumes the previous reload sinking pass, and also performs basic inlining. Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
| * Fix build: Add missing import and remove unneeded #ifdef.Ben Lippmeier2011-05-151-3/+2
| | | | | | | | From Erik de Castro Lopo.