simonpj@microsoft.com [Fri, 10 Dec 2010 08:41:16 +0000 (08:41 +0000)]
Comments only
simonpj@microsoft.com [Wed, 8 Dec 2010 17:22:51 +0000 (17:22 +0000)]
Make the case-to-let transformation a little less eager
See Note [Case elimination: lifted case].
Thanks to Roman for identifying this case.
Simon Marlow [Fri, 10 Dec 2010 09:40:02 +0000 (09:40 +0000)]
warning fix: don't redefine BLOCKS_PER_MBLOCK
Simon Marlow [Fri, 10 Dec 2010 09:39:51 +0000 (09:39 +0000)]
Only reset the event log if logging is turned on (addendum to #4512)
Simon Marlow [Fri, 10 Dec 2010 09:39:06 +0000 (09:39 +0000)]
allocate enough room for the longer filename (addendum to #4512)
Simon Marlow [Fri, 10 Dec 2010 09:00:45 +0000 (09:00 +0000)]
Fix Windows build: move rtsTimerSignal to the POSIX-only section
Ben Lippmeier [Fri, 10 Dec 2010 06:01:54 +0000 (06:01 +0000)]
Default the value of -dppr-cols when the static flags aren't initialised yet
If GHC's command line options are bad then the options parser uses the
pretty printer before the -dppr-cols flag has been read.
Ben Lippmeier [Fri, 10 Dec 2010 04:59:22 +0000 (04:59 +0000)]
Defensify naked read in LLVM mangler
Ben Lippmeier [Fri, 10 Dec 2010 04:26:00 +0000 (04:26 +0000)]
Formatting only
Ben Lippmeier [Wed, 8 Dec 2010 07:05:08 +0000 (07:05 +0000)]
Always ppr case alts on separate lines
Ben Lippmeier [Wed, 8 Dec 2010 07:02:45 +0000 (07:02 +0000)]
Add -dppr-colsN to set width of dumps
Ben Lippmeier [Wed, 8 Dec 2010 06:55:48 +0000 (06:55 +0000)]
Add -dppr-case-as-let to print "strict lets" as actual lets
Ben Lippmeier [Wed, 8 Dec 2010 06:30:37 +0000 (06:30 +0000)]
Suppress more info with -dsuppress-idinfo
Ben Lippmeier [Wed, 8 Dec 2010 06:28:14 +0000 (06:28 +0000)]
Implement -dsuppress-type-signatures
Ben Lippmeier [Wed, 8 Dec 2010 02:07:23 +0000 (02:07 +0000)]
Add more suppression flags
-dsuppress-all
-dsuppress-type-applications
-dsuppress-idinfo
Simon Marlow [Thu, 9 Dec 2010 12:04:04 +0000 (12:04 +0000)]
fix ticket number (#4505)
Simon Marlow [Thu, 9 Dec 2010 11:58:44 +0000 (11:58 +0000)]
fix warnings
Simon Marlow [Thu, 9 Dec 2010 11:40:05 +0000 (11:40 +0000)]
Catch too-large allocations and emit an error message (#4505)
This is a temporary measure until we fix the bug properly (which is
somewhat tricky, and we think might be easier in the new code
generator).
For now we get:
ghc-stage2: sorry! (unimplemented feature or known bug)
(GHC version 7.1 for i386-unknown-linux):
Trying to allocate more than 1040384 bytes.
See: http://hackage.haskell.org/trac/ghc/ticket/4550
Suggestion: read data from a file instead of having large static data
structures in the code.
Dmitry Astapov [Wed, 8 Dec 2010 18:37:55 +0000 (18:37 +0000)]
Export the value of the signal used by scheduler (#4504)
Simon Marlow [Wed, 8 Dec 2010 16:32:12 +0000 (16:32 +0000)]
Tweak the "sorry" message a bit
- "sorry! (this is work in progress)\n"
+ "sorry! (unimplemented feature or known bug)\n"
Boris Lykah [Tue, 23 Nov 2010 19:01:32 +0000 (19:01 +0000)]
:unset settings support
Added support for settings [args, prog, prompt, editor and stop].
Now :unset supports the same set of options as :set.
Ian Lynagh [Wed, 8 Dec 2010 15:23:49 +0000 (15:23 +0000)]
Fix Windows memory freeing: add a check for fb == NULL; fixes trac #4506
Also added a few comments, and a load of code got indented 1 level deeper.
Dmitry Astapov [Fri, 3 Dec 2010 13:39:50 +0000 (13:39 +0000)]
Fixes for #4512: EventLog.c - provides ability to terminate event logging, Schedule.c - uses them in forkProcess.
Ian Lynagh [Tue, 7 Dec 2010 01:00:33 +0000 (01:00 +0000)]
Make CPPFLAGS variables, as well as CFLAGS and LDFLAGS
This fixes the "does unsetenv return void" test in the unix package on
OS X, if I tell it to make 10.4-compatible binaries. The test uses
CPPFLAGS but not CFLAGS, so it thought it returned int (as it was
in 10.5-mode), but the C compiler (using CFLAGS, so in 10.4 mode)
thought it returned void.
I also added CONF_LD_OPTS_STAGE$3 to the list of things in LDFLAGS,
which looks like an accidental ommission.
Ian Lynagh [Mon, 6 Dec 2010 21:52:01 +0000 (21:52 +0000)]
Add a configure message
Ian Lynagh [Mon, 6 Dec 2010 20:33:29 +0000 (20:33 +0000)]
Link even programs containing no Haskell modules with GHC
I don't remember why we made it use gcc instead, but going back to
using ghc doesn't seem to break anything, and should fix the build
on OS X 10.6.
Ian Lynagh [Mon, 6 Dec 2010 20:31:25 +0000 (20:31 +0000)]
Correct the stage that the includes/ tools are built in
Ian Lynagh [Sun, 5 Dec 2010 21:20:48 +0000 (21:20 +0000)]
Tweak the cleaning of inplace/; fixes trac #4320
Ian Lynagh [Sun, 5 Dec 2010 20:53:01 +0000 (20:53 +0000)]
Close .ghci files after reading them; fixes trac #4487
pepeiborra@gmail.com [Fri, 3 Dec 2010 20:23:46 +0000 (20:23 +0000)]
Fix the behaviour of :history for ticks surrounding top level functions
Michal Terepeta [Sat, 27 Nov 2010 21:21:16 +0000 (21:21 +0000)]
Don't warn of duplicate exports in case of module exports.
But only when the module exports refer to different modules.
See ticket #4478.
Michal Terepeta [Sat, 30 Oct 2010 17:13:03 +0000 (17:13 +0000)]
Fix whitespace/layout in RnNames.
Ian Lynagh [Fri, 3 Dec 2010 20:15:58 +0000 (20:15 +0000)]
Tell gcc to support back to OS X 10.5
Ian Lynagh [Thu, 2 Dec 2010 14:08:08 +0000 (14:08 +0000)]
Make RelaxedLayout off by default
I suspect this is a vary rarely used extension to the official layout
rule.
simonpj@microsoft.com [Fri, 3 Dec 2010 18:07:58 +0000 (18:07 +0000)]
Fix up TcInstDcls
I really don't know how this module got left out of my last
patch, namely
Thu Dec 2 12:35:47 GMT 2010 simonpj@microsoft.com
* Re-jig simplifySuperClass (again)
I suggest you don't pull either the patch above, or this
one, unless you really have to. I'm not fully confident
that it works properly yet. Ran out of time. Sigh.
Simon Marlow [Fri, 3 Dec 2010 09:48:40 +0000 (09:48 +0000)]
throwTo: report the why_blocked value in the barf()
Simon Marlow [Fri, 3 Dec 2010 09:48:18 +0000 (09:48 +0000)]
handle ThreadMigrating in throwTo() (#4811)
If a throwTo targets a thread that has just been created with
forkOnIO, then it is possible the exception strikes while the thread
is still in the process of migrating. throwTo() didn't handle this
case, but it's fairly straightforward.
Simon Marlow [Thu, 2 Dec 2010 16:08:38 +0000 (16:08 +0000)]
removeThreadFromQueue: stub out the link field before returning (#4813)
Simon Marlow [Fri, 26 Nov 2010 14:06:20 +0000 (14:06 +0000)]
small tidyup
Simon Marlow [Thu, 2 Dec 2010 12:23:49 +0000 (12:23 +0000)]
Fix a recomp bug: make classes/datatypes depend directly on DFuns (#4469)
And remove the old mechanism of recording dfun uses separately,
because it didn't work.
This wiki page describes recompilation avoidance and fingerprinting.
I'll update it to describe the new method and what went wrong with the
old method:
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/RecompilationAvoidance
Simon Marlow [Wed, 1 Dec 2010 15:17:06 +0000 (15:17 +0000)]
make a panic message more informative and suggest -dcore-lint (see #4534)
simonpj@microsoft.com [Thu, 2 Dec 2010 12:35:47 +0000 (12:35 +0000)]
Re-jig simplifySuperClass (again)
This fixes the current loop in T3731, and will fix other
reported loops. The loops show up when we are generating
evidence for superclasses in an instance declaration.
The trick is to make the "self" dictionary simplifySuperClass
depend *explicitly* on the superclass we are currently trying
to build. See Note [Dependencies in self dictionaries] in TcSimplify.
That in turn means that EvDFunApp needs a dependency-list, used
when chasing dependencies in isGoodRecEv.
simonpj@microsoft.com [Thu, 2 Dec 2010 12:31:10 +0000 (12:31 +0000)]
A little refactoring (remove redundant argument passed to isGoodRecEv)
simonpj@microsoft.com [Thu, 2 Dec 2010 12:25:40 +0000 (12:25 +0000)]
Make rebindable if-then-else a little more permissive
See Note [Rebindable syntax for if]. Fixes Trac #4798.
Thanks to Nils Schweinsberg <mail@n-sch.de>
simonpj@microsoft.com [Thu, 2 Dec 2010 10:27:06 +0000 (10:27 +0000)]
Improve error message (Trac #4799)
simonpj@microsoft.com [Thu, 2 Dec 2010 10:26:18 +0000 (10:26 +0000)]
Fix a nasty bug in RULE matching: Trac #4814
See Note [Matching lets], which explains it all in detail.
It took me a day to think of a nice way to fix the bug,
but I think the result is quite respectable. Subtle, though.
Ben Lippmeier [Tue, 30 Nov 2010 07:54:15 +0000 (07:54 +0000)]
Rename -XPArr to -XParallelArrays
pho@cielonegro.org [Tue, 30 Nov 2010 14:30:14 +0000 (14:30 +0000)]
FIX #1845 (unconditional relative branch out of range)
Don't use mmap on powerpc-apple-darwin as mmap doesn't support
reallocating but we need to allocate jump islands just after each
object images. Otherwise relative branches to jump islands can fail
due to 24-bits displacement overflow.
pho@cielonegro.org [Tue, 30 Nov 2010 14:27:00 +0000 (14:27 +0000)]
rts/Linker.c (loadArchive):
This routine should be aware of Mach-O misalignment of malloc'ed memory regions.
pho@cielonegro.org [Tue, 30 Nov 2010 12:33:55 +0000 (12:33 +0000)]
rts/Linker.c (machoGetMisalignment):
Use fseek(3) instead of rewind(3) to move the file position indicator back to the initial position. Otherwise we can't use this function in loadArchive().
pho@cielonegro.org [Tue, 30 Nov 2010 12:14:25 +0000 (12:14 +0000)]
rts/Linker.c (ocFlushInstructionCache):
I found this function causes a segfault when ocAllocateSymbolExtras() has allocated a separate memory region for jump islands.
Ian Lynagh [Wed, 1 Dec 2010 18:11:17 +0000 (18:11 +0000)]
Remove NewQualifiedOperators
The extension was rejected by Haskell', and deprecated in 7.0.
Simon Marlow [Wed, 1 Dec 2010 09:21:47 +0000 (09:21 +0000)]
fix ref to utils/ext-core, which moved to Hackage (extcore package)
Simon Marlow [Wed, 1 Dec 2010 09:21:19 +0000 (09:21 +0000)]
fix floating-point/FFI section: fenv is C99, not POSIX
keller@cse.unsw.edu.au [Tue, 30 Nov 2010 01:34:25 +0000 (01:34 +0000)]
Fixed some 'unused vars' warnings
keller@cse.unsw.edu.au [Mon, 29 Nov 2010 23:10:43 +0000 (23:10 +0000)]
vectScalarLam handles int, float, and double now
keller@cse.unsw.edu.au [Mon, 15 Nov 2010 05:12:25 +0000 (05:12 +0000)]
Handling of lets, letrec and case when checking if a lambda expr needs to be vectorised
Simon Marlow [Fri, 26 Nov 2010 12:53:36 +0000 (12:53 +0000)]
Document the behaviour of fenv.h functions with GHC (#4391)
Ian Lynagh [Sat, 27 Nov 2010 23:58:05 +0000 (23:58 +0000)]
Remove the no-ghci-lib warning in ghc-pkg
GHCi libs are no longer necessary, as we can use the .a or .so versions
instead.
Ian Lynagh [Sat, 27 Nov 2010 22:39:45 +0000 (22:39 +0000)]
Add GNU-variant support to the .a parser, and other improvements/tidyups
Ian Lynagh [Sat, 27 Nov 2010 19:16:46 +0000 (19:16 +0000)]
Re-indent only
Ian Lynagh [Sat, 27 Nov 2010 19:09:07 +0000 (19:09 +0000)]
Improve linker debugging for archive files
Ian Lynagh [Sat, 27 Nov 2010 17:30:00 +0000 (17:30 +0000)]
Always enable the archive-loading code
If the GHCi .o lib doesn't exist, load the .a instead
Roman Leshchinskiy [Sat, 27 Nov 2010 12:50:25 +0000 (12:50 +0000)]
Inherit the ForceSpecConstr flag in non-recursive nested bindings
This makes sure that join points are fully specialised in loops which are
marked as ForceSpecConstr.
Roman Leshchinskiy [Sat, 27 Nov 2010 12:35:28 +0000 (12:35 +0000)]
Document -ddump-rule-firings and -ddump-rule-rewrites
Roman Leshchinskiy [Sat, 27 Nov 2010 12:20:22 +0000 (12:20 +0000)]
New flag -dddump-rule-rewrites
Now, -ddump-rule-firings only shows the names of the rules that fired (it would
show "before" and "after" with -dverbose-core2core previously) and
-ddump-rule-rewrites always shows the "before" and "after" bits, even without
-dverbose-core2core.
simonpj@microsoft.com [Fri, 26 Nov 2010 16:24:09 +0000 (16:24 +0000)]
Acutally, wild-card variables *can* have occurrences
This patch removes the Lint test, and comments why
simonpj@microsoft.com [Fri, 26 Nov 2010 13:32:10 +0000 (13:32 +0000)]
Tidy up the handling of wild-card binders, and make Lint check it
See Note [WildCard binders] in SimplEnv. Spotted by Roman.
simonpj@microsoft.com [Thu, 25 Nov 2010 17:23:56 +0000 (17:23 +0000)]
Substitution should just substitute, not optimise
This was causing Trac #4524, by optimising
(e |> co) to e
on the LHS of a rule. Result, the template variable
'co' wasn't bound any more.
Now that substition doesn't optimise, it seems sensible to call
simpleOptExpr rather than substExpr when substituting in the
RHS of rules. Not a big deal either way.
simonpj@microsoft.com [Thu, 25 Nov 2010 17:21:38 +0000 (17:21 +0000)]
Make SpecConstr "look through" identity coercions
simonpj@microsoft.com [Thu, 25 Nov 2010 17:20:11 +0000 (17:20 +0000)]
Comment only
simonpj@microsoft.com [Mon, 1 Nov 2010 08:07:48 +0000 (08:07 +0000)]
White space only
Simon Marlow [Thu, 25 Nov 2010 13:57:29 +0000 (13:57 +0000)]
Keep a maximum of 6 spare worker threads per Capability (#4262)
Simon Marlow [Mon, 15 Nov 2010 09:54:44 +0000 (09:54 +0000)]
Unicide OtherNumber category should be allowed in identifiers (#4373)
Ben Lippmeier [Fri, 26 Nov 2010 04:40:36 +0000 (04:40 +0000)]
vectoriser: fix warning
Ben Lippmeier [Fri, 26 Nov 2010 04:29:50 +0000 (04:29 +0000)]
vectoriser: fix warning
Ben Lippmeier [Fri, 26 Nov 2010 04:29:00 +0000 (04:29 +0000)]
vectoriser: take class directly from the instance tycon
Ben Lippmeier [Thu, 25 Nov 2010 07:32:01 +0000 (07:32 +0000)]
vectoriser: comments only
Ben Lippmeier [Thu, 25 Nov 2010 06:23:49 +0000 (06:23 +0000)]
vectoriser: follow changes in mkClass
Ben Lippmeier [Thu, 25 Nov 2010 06:23:32 +0000 (06:23 +0000)]
vectoriser: tracing wibbles
benl@ouroborus.net [Tue, 14 Sep 2010 06:29:39 +0000 (06:29 +0000)]
mkDFunUnfolding wants the type of the dfun to be a PredTy
Ben Lippmeier [Thu, 25 Nov 2010 06:09:04 +0000 (06:09 +0000)]
vectoriser: fix conflicts
benl@ouroborus.net [Tue, 14 Sep 2010 06:29:03 +0000 (06:29 +0000)]
Comments and formatting only
benl@ouroborus.net [Thu, 9 Sep 2010 08:04:05 +0000 (08:04 +0000)]
Comments and formatting to type environment vectoriser
Ian Lynagh [Wed, 24 Nov 2010 23:15:14 +0000 (23:15 +0000)]
Don't mix implicit and explicit layout
Ian Lynagh [Wed, 24 Nov 2010 23:06:55 +0000 (23:06 +0000)]
Whitespace only
Ian Lynagh [Wed, 24 Nov 2010 22:05:07 +0000 (22:05 +0000)]
Separate NondecreasingIndentation out into its own extension
Ian Lynagh [Wed, 24 Nov 2010 20:59:57 +0000 (20:59 +0000)]
Add another GHC layout rule relaxation to RelaxedLayout
Ian Lynagh [Wed, 24 Nov 2010 14:04:55 +0000 (14:04 +0000)]
Remove an unused build system variable: GhcDir
Ian Lynagh [Wed, 24 Nov 2010 14:04:15 +0000 (14:04 +0000)]
Remove unused build system variable: GhcHasEditline
Ian Lynagh [Wed, 24 Nov 2010 14:00:52 +0000 (14:00 +0000)]
Remove unused variables from the build system: HBC, NHC, MKDEPENDHS
Ian Lynagh [Tue, 23 Nov 2010 23:35:36 +0000 (23:35 +0000)]
Remove references to Haskell 98
They are no longer right, as we have Haskell' generating new Haskell
standards.
Ian Lynagh [Tue, 23 Nov 2010 17:06:21 +0000 (17:06 +0000)]
Tweak a configure test
Ian Lynagh [Tue, 23 Nov 2010 17:05:41 +0000 (17:05 +0000)]
Add a configure test for the visibility hidden attribute
Simon Marlow [Fri, 29 Oct 2010 09:28:43 +0000 (09:28 +0000)]
sanity: fix places where we weren't filling fresh memory with 0xaa
Ian Lynagh [Sun, 21 Nov 2010 14:44:55 +0000 (14:44 +0000)]
Just some alpha renaming
pepeiborra@gmail.com [Mon, 15 Nov 2010 22:36:23 +0000 (22:36 +0000)]
Fix bug #3165 (:history throws irrefutable pattern failed)
I ran across this bug and took the time to fix it, closing
a long time due TODO in InteractiveEval.hs
Instead of looking around to find the enclosing declaration
of a tick, this patch makes use of the information already collected during the
coverage desugaring phase
Ian Lynagh [Sun, 21 Nov 2010 18:35:20 +0000 (18:35 +0000)]
For bindists, build ghc-pwd with stage 1
rather then the bootstrapping compiler. This fixes problems where the
bootstrapping compiler dynamically links against libraries not on the
target machine.
Ian Lynagh [Sun, 21 Nov 2010 18:33:42 +0000 (18:33 +0000)]
Makefile tweak
Ian Lynagh [Sun, 21 Nov 2010 17:49:16 +0000 (17:49 +0000)]
Fix a makefile include ordering sanity check