ghc.git
10 years agoUse "rep; nop" inside a spin-lock loop on x86/x86-64
Simon Marlow [Tue, 29 Sep 2009 13:07:22 +0000 (13:07 +0000)] 
Use "rep; nop" inside a spin-lock loop on x86/x86-64
This helps on a hyperthreaded CPU by yielding to the other thread in a
spinlock loop.

10 years agoNo need to use -split-objs with dynamic libraries
Simon Marlow [Tue, 29 Sep 2009 10:38:11 +0000 (10:38 +0000)] 
No need to use -split-objs with dynamic libraries

10 years agoFix some missing unfoldings (foldr in particular!)
Simon Marlow [Tue, 29 Sep 2009 10:27:45 +0000 (10:27 +0000)] 
Fix some missing unfoldings (foldr in particular!)

The changes I made to the tidier recently introduced a serious
regression: the unfoldings for bindings in a recursive group were
sometimes lost, because we were looking at Id occurrences rather than
Id binders, and the occurrences of recursive Ids do not necessarily
have unfoldings attached.

10 years agoremove TICK_GC_WORDS_COPIED, the GC stats give us the same thing
Simon Marlow [Mon, 28 Sep 2009 14:53:49 +0000 (14:53 +0000)] 
remove TICK_GC_WORDS_COPIED, the GC stats give us the same thing

10 years agoRemove long rotted configure support for Windows DLLs
Ben.Lippmeier@anu.edu.au [Sat, 26 Sep 2009 10:36:10 +0000 (10:36 +0000)] 
Remove long rotted configure support for Windows DLLs

10 years agoFix making Windows bindist and installer
Ian Lynagh [Tue, 29 Sep 2009 01:27:17 +0000 (01:27 +0000)] 
Fix making Windows bindist and installer

10 years agoRun bindisttest when validating
Ian Lynagh [Mon, 28 Sep 2009 17:33:23 +0000 (17:33 +0000)] 
Run bindisttest when validating

10 years agoFollow bindist changes in bindisttest
Ian Lynagh [Sun, 27 Sep 2009 21:50:31 +0000 (21:50 +0000)] 
Follow bindist changes in bindisttest
Also add support for testing the bindistprep tarball, for when we are
validating.

10 years agoMore bindist tweaking
Ian Lynagh [Sun, 27 Sep 2009 21:21:14 +0000 (21:21 +0000)] 
More bindist tweaking

10 years agoAdd a $(MAKE_RESTARTS) check to ghc.mk
Ian Lynagh [Sun, 27 Sep 2009 20:26:03 +0000 (20:26 +0000)] 
Add a $(MAKE_RESTARTS) check to ghc.mk
This should catch make going into an infinite loop.

10 years agoDon't use absolute paths unnecessarily when making bindists
Ian Lynagh [Sun, 27 Sep 2009 19:35:28 +0000 (19:35 +0000)] 
Don't use absolute paths unnecessarily when making bindists

10 years agoChange where bindists are made
Ian Lynagh [Sun, 27 Sep 2009 19:17:40 +0000 (19:17 +0000)] 
Change where bindists are made
We now do all the hard work in a bindistprep subdirectory, and just move
the result to the root directory. This way we can delete anything in
bindistprep/ without worrying about deleting anything important.

10 years agoemitRetUT: cope with arguments overlapping with results (#3546)
Simon Marlow [Mon, 28 Sep 2009 12:44:55 +0000 (12:44 +0000)] 
emitRetUT: cope with arguments overlapping with results (#3546)

In decodeFloat_Int# we have the C-- code:

    mp_tmp1  = Sp - WDS(1);
    mp_tmp_w = Sp - WDS(2);

    /* arguments: F1 = Float# */
    arg = F1;

    /* Perform the operation */
    foreign "C" __decodeFloat_Int(mp_tmp1 "ptr", mp_tmp_w "ptr", arg) [];

    /* returns: (Int# (mantissa), Int# (exponent)) */
    RET_NN(W_[mp_tmp1], W_[mp_tmp_w]);

Which all looks quite reasonable.  The problem is that RET_NN() might
assign the results to the stack (with an unregisterised back end), and
in this case the arguments to RET_NN() refer to the same stack slots
that will be assigned to.

The code generator should do the right thing here, but it wasn't - it
was assuming that it could assign the results sequentially.  A 1-line
fix to use emitSimultaneously rather than emitStmts (plus comments).

10 years agofix cut-and-paste bugs in .cmm -> .hc/.s rules
Simon Marlow [Mon, 28 Sep 2009 11:51:39 +0000 (11:51 +0000)] 
fix cut-and-paste bugs in .cmm -> .hc/.s rules

10 years agoAdd a way to generate tracing events programmatically
Simon Marlow [Fri, 25 Sep 2009 15:02:43 +0000 (15:02 +0000)] 
Add a way to generate tracing events programmatically

added:

 primop  TraceEventOp "traceEvent#" GenPrimOp
   Addr# -> State# s -> State# s
   { Emits an event via the RTS tracing framework.  The contents
     of the event is the zero-terminated byte string passed as the first
     argument.  The event will be emitted either to the .eventlog file,
     or to stderr, depending on the runtime RTS flags. }

and added the required RTS functionality to support it.  Also a bit of
refactoring in the RTS tracing code.

10 years agoUnder utils/ext-core, update README to mention that ext-core is now on Hackage
Tim Chevalier [Sun, 27 Sep 2009 23:08:45 +0000 (23:08 +0000)] 
Under utils/ext-core, update README to mention that ext-core is now on Hackage

10 years agoUpdate the OS X package build scripts
Ian Lynagh [Fri, 25 Sep 2009 13:21:51 +0000 (13:21 +0000)] 
Update the OS X package build scripts
The docs are no longer built and installed separately.

10 years agoUse $topdir in the RTS's package.conf file when doing a relocatable build
Ian Lynagh [Sun, 27 Sep 2009 14:53:09 +0000 (14:53 +0000)] 
Use $topdir in the RTS's package.conf file when doing a relocatable build

10 years agoFix invoking windres in a directory containing spaces
Ian Lynagh [Sun, 27 Sep 2009 14:41:19 +0000 (14:41 +0000)] 
Fix invoking windres in a directory containing spaces

10 years agoAdd support for relocatable builds in the new build system
Ian Lynagh [Sun, 27 Sep 2009 01:06:05 +0000 (01:06 +0000)] 
Add support for relocatable builds in the new build system

10 years agoFix building of the RTS with the NCG under Windows
Ben.Lippmeier@anu.edu.au [Sat, 26 Sep 2009 07:55:07 +0000 (07:55 +0000)] 
Fix building of the RTS with the NCG under Windows

10 years agoMake some sed more portable: Use \{0,1\} instead of \?
Ian Lynagh [Thu, 24 Sep 2009 17:10:25 +0000 (17:10 +0000)] 
Make some sed more portable: Use \{0,1\} instead of \?

10 years agoteach boot-pkgs about -snapshot tarballs
Ian Lynagh [Mon, 21 Sep 2009 20:39:04 +0000 (20:39 +0000)] 
teach boot-pkgs about -snapshot tarballs

10 years agoWe now tell the linker macosx_version_min is 10.5; trac #3521
Ian Lynagh [Thu, 24 Sep 2009 16:24:50 +0000 (16:24 +0000)] 
We now tell the linker macosx_version_min is 10.5; trac #3521
We used to say 10.3, but this gives
    -rpath can only be used when targeting Mac OS X 10.5 or later
when building shared libraries.
Patch from mwotton.

10 years agoErrors talking about a left section should refer to the "first" argument
Ian Lynagh [Thu, 24 Sep 2009 12:41:28 +0000 (12:41 +0000)] 
Errors talking about a left section should refer to the "first" argument
rather than the "second" argument. Fixes trac #3505.

10 years agoMake count_lines work with the new directory layout
Ian Lynagh [Wed, 23 Sep 2009 18:22:51 +0000 (18:22 +0000)] 
Make count_lines work with the new directory layout

10 years agoAdd count_lines back into the repo
Ian Lynagh [Wed, 23 Sep 2009 17:49:45 +0000 (17:49 +0000)] 
Add count_lines back into the repo

10 years agoRemove a haskeline release note that doesn't apply to ghci
Ian Lynagh [Wed, 23 Sep 2009 14:51:30 +0000 (14:51 +0000)] 
Remove a haskeline release note that doesn't apply to ghci
Spotted by Judah.

10 years agofix warnings
Simon Marlow [Wed, 23 Sep 2009 12:50:59 +0000 (12:50 +0000)] 
fix warnings

10 years agoAdd erf, erfc, erfff, erfcf (#3536)
Simon Marlow [Wed, 23 Sep 2009 10:52:40 +0000 (10:52 +0000)] 
Add erf, erfc, erfff, erfcf (#3536)

10 years agoVarious updates/additions
Simon Marlow [Wed, 23 Sep 2009 09:46:47 +0000 (09:46 +0000)] 
Various updates/additions

10 years agoDocument -package-id, and use the term "package ID" consistently
Simon Marlow [Wed, 23 Sep 2009 09:46:39 +0000 (09:46 +0000)] 
Document -package-id, and use the term "package ID" consistently

10 years agoMake it so that -Ds implies -ls
Simon Marlow [Wed, 23 Sep 2009 10:51:19 +0000 (10:51 +0000)] 
Make it so that -Ds implies -ls

10 years agoDon't build haddock if HADDOC_DOCS = NO, and disable HADDOC_DOCS if GhcWithInterprete...
Matthias Kilian [Sun, 20 Sep 2009 18:13:19 +0000 (18:13 +0000)] 
Don't build haddock if HADDOC_DOCS = NO, and disable HADDOC_DOCS if GhcWithInterpreter = NO
Haddock uses TcRnDriver.tcRnGetInfo, which is only available if
GHCI is built. Set HADDOC_DOCS to NO if GhcWithInterpreter is NO,
and disable the haddock build if HADDOC_DOCS = NO.

10 years agoRemove syb; it is no longer needed
Ian Lynagh [Tue, 22 Sep 2009 22:23:08 +0000 (22:23 +0000)] 
Remove syb; it is no longer needed

10 years agoRemove base3-compat
Ian Lynagh [Tue, 22 Sep 2009 20:06:57 +0000 (20:06 +0000)] 
Remove base3-compat

10 years agoSet version number to 6.13
Ian Lynagh [Tue, 22 Sep 2009 15:24:00 +0000 (15:24 +0000)] 
Set version number to 6.13

10 years agoboot-pkgs now automatically works out which libraries are from tarballs
Ian Lynagh [Mon, 21 Sep 2009 16:55:59 +0000 (16:55 +0000)] 
boot-pkgs now automatically works out which libraries are from tarballs

10 years agoremove "touch %_hsc.c" - what was it for?
Simon Marlow [Mon, 21 Sep 2009 15:57:20 +0000 (15:57 +0000)] 
remove "touch %_hsc.c" - what was it for?

10 years agoValidate now cleans regardless of whether mk/config.mk exists
Ian Lynagh [Mon, 21 Sep 2009 18:26:36 +0000 (18:26 +0000)] 
Validate now cleans regardless of whether mk/config.mk exists
Cleaning should always succeed now

10 years agoUpdate 6.12.1 release notes
Ian Lynagh [Mon, 21 Sep 2009 18:24:31 +0000 (18:24 +0000)] 
Update 6.12.1 release notes
Add changes that we inherit from haskeline

10 years agoAdd sdist to ghc-cabal's bag of tricks
Ian Lynagh [Mon, 21 Sep 2009 16:20:03 +0000 (16:20 +0000)] 
Add sdist to ghc-cabal's bag of tricks

10 years agoAdd the --checked-out flag; expand the docs/comments at the top
Simon Marlow [Mon, 21 Sep 2009 14:52:01 +0000 (14:52 +0000)] 
Add the --checked-out flag; expand the docs/comments at the top

10 years agomove way-related stuff into a separate file
Simon Marlow [Mon, 21 Sep 2009 13:00:24 +0000 (13:00 +0000)] 
move way-related stuff into a separate file
This fixes at least one problem: libHSffi-ghc<version>.so wasn't being
cleaned, because $(dyn_libsuf) wasn't defined while cleaning.

10 years agoclean some Haddock-generated files
Simon Marlow [Mon, 21 Sep 2009 11:42:10 +0000 (11:42 +0000)] 
clean some Haddock-generated files

10 years agoFix bindist creation
Ian Lynagh [Sun, 20 Sep 2009 18:36:31 +0000 (18:36 +0000)] 
Fix bindist creation

10 years agoUpdate dependencies
Ian Lynagh [Sun, 20 Sep 2009 15:24:02 +0000 (15:24 +0000)] 
Update dependencies

10 years agoAdd release notes for 6.12.1
Ian Lynagh [Sun, 20 Sep 2009 14:18:20 +0000 (14:18 +0000)] 
Add release notes for 6.12.1

10 years agoremove encoding of output using Haskeline; the IO library does it now (#3398)
Simon Marlow [Fri, 18 Sep 2009 14:40:41 +0000 (14:40 +0000)] 
remove encoding of output using Haskeline; the IO library does it now (#3398)

10 years agoignore unused-import warnings from Haskeline
Simon Marlow [Fri, 18 Sep 2009 14:27:18 +0000 (14:27 +0000)] 
ignore unused-import warnings from Haskeline

10 years agoFix the nursery size calculation when -N is used with -H
Simon Marlow [Fri, 18 Sep 2009 13:44:38 +0000 (13:44 +0000)] 
Fix the nursery size calculation when -N is used with -H

10 years agoimplement case-on-Word in the byte code generator/interpreter (#2881)
Simon Marlow [Fri, 18 Sep 2009 13:32:04 +0000 (13:32 +0000)] 
implement case-on-Word in the byte code generator/interpreter (#2881)

10 years agoFix #3439: -debug implies -ticky, and -ticky code links with any RTS
Simon Marlow [Fri, 18 Sep 2009 11:46:31 +0000 (11:46 +0000)] 
Fix #3439: -debug implies -ticky, and -ticky code links with any RTS

10 years agoFix #3525 - we were still checking for ParsePkgConf.hs, which is gone
Simon Marlow [Fri, 18 Sep 2009 10:43:27 +0000 (10:43 +0000)] 
Fix #3525 - we were still checking for ParsePkgConf.hs, which is gone

10 years agoimprove the cyclic module error message as per #1856
Simon Marlow [Wed, 16 Sep 2009 20:50:36 +0000 (20:50 +0000)] 
improve the cyclic module error message as per #1856

 - remove the main: stuff
 - show the filenames
 - don't clutter the output with imports that aren't involved in
   the cycle

10 years agoUse CONF_CC_OPTS
Manuel M T Chakravarty [Thu, 17 Sep 2009 13:27:06 +0000 (13:27 +0000)] 
Use CONF_CC_OPTS
- Needed to get arch-dependent options, eg, on Snow Leopard

10 years agofix install on Windows
Simon Marlow [Thu, 17 Sep 2009 12:19:21 +0000 (12:19 +0000)] 
fix install on Windows

10 years agofix install on Windows
Simon Marlow [Thu, 17 Sep 2009 10:33:50 +0000 (10:33 +0000)] 
fix install on Windows

10 years agoAllow -package-id to override the default package shadowing semantics
Simon Marlow [Thu, 17 Sep 2009 12:15:10 +0000 (12:15 +0000)] 
Allow -package-id to override the default package shadowing semantics
So that Cabal, if it wants, can use a more general algorithm to find a
consistent set of packages to use.

10 years agofix xref
Simon Marlow [Thu, 17 Sep 2009 10:05:44 +0000 (10:05 +0000)] 
fix xref

10 years agoadd -eventlog
Simon Marlow [Thu, 17 Sep 2009 10:04:03 +0000 (10:04 +0000)] 
add -eventlog

10 years agodocument -eventlog and the associated runtime options
Simon Marlow [Wed, 16 Sep 2009 15:28:15 +0000 (15:28 +0000)] 
document -eventlog and the associated runtime options

10 years agotypo in error message
Simon Marlow [Wed, 16 Sep 2009 14:23:24 +0000 (14:23 +0000)] 
typo in error message

10 years agoonly create the .eventlog file if any tracing options are enabled
Simon Marlow [Wed, 16 Sep 2009 14:23:15 +0000 (14:23 +0000)] 
only create the .eventlog file if any tracing options are enabled

10 years agoFix build on Mac OS 10.6 (Snow Leopard)
Manuel M T Chakravarty [Thu, 17 Sep 2009 04:41:21 +0000 (04:41 +0000)] 
Fix build on Mac OS 10.6 (Snow Leopard)
- We have -m32 as machine-dependent option for gcc for a 32 bit build
- Like on OpenBSD, SL requires -fno-stack-protector to avoid triggering the
  stack smashing checks inserted by gcc by default on this platform.

10 years agoFollow the builtin:rts vs. builtin_rts renaming
Matthias Kilian [Tue, 15 Sep 2009 20:42:54 +0000 (20:42 +0000)] 
Follow the builtin:rts vs. builtin_rts renaming

This unbreaks make install again.

10 years agoPut context information for warnings in errMsgExtraInfo.
Thomas Schilling [Tue, 15 Sep 2009 15:03:53 +0000 (15:03 +0000)] 
Put context information for warnings in errMsgExtraInfo.

For type checker warnings, the context information ("In the expression
...") was simply appended to the main message while for proper errors
they live in errMsgExtraInfo.  This allows GHC API clients to drop
that information if not needed.

10 years agoUpdate and improve packages documentation
Simon Marlow [Tue, 15 Sep 2009 16:10:24 +0000 (16:10 +0000)] 
Update and improve packages documentation

10 years agoFIX #3434 (improve vi tags: add non-exported symbols, kinds, regex tags)
Peter Hercek [Mon, 17 Aug 2009 18:41:00 +0000 (18:41 +0000)] 
FIX #3434 (improve vi tags: add non-exported symbols, kinds, regex tags)

10 years agoEvent tracing: put the capability in the block marker, omit it from the events
Simon Marlow [Tue, 15 Sep 2009 11:12:27 +0000 (11:12 +0000)] 
Event tracing: put the capability in the block marker, omit it from the events
This makes events smaller and tracing quicker, and speeds up reading
and sorting the trace file.

HEADS UP: this changes the format of event log files.  Corresponding
changes to the ghc-events package are required (and will be pushed
soon).  Normally we would make backwards-compatible changes, but this
changes the format of every event (to remove the capability) so I'm
breaking the rules this time.  This will be the only time we can do
this, since the format becomes public in 6.12.1.

10 years agoAdd event block markers
Simon Marlow [Sun, 13 Sep 2009 21:25:46 +0000 (21:25 +0000)] 
Add event block markers
These indicate the size and time span of a sequence of events in the
event log, to make it easier to sort and navigate a large event log.

10 years agoOptimise the code generated at trace points
Simon Marlow [Sat, 12 Sep 2009 21:35:04 +0000 (21:35 +0000)] 
Optimise the code generated at trace points

10 years agoImprove the default parallel GC settings, and sanitise the flags (#3340)
Simon Marlow [Tue, 15 Sep 2009 08:40:00 +0000 (08:40 +0000)] 
Improve the default parallel GC settings, and sanitise the flags (#3340)

Flags (from +RTS -?):

  -qg[<n>]  Use parallel GC only for generations >= <n>
            (default: 0, -qg alone turns off parallel GC)
  -qb[<n>]  Use load-balancing in the parallel GC only for generations >= <n>
            (default: 1, -qb alone turns off load-balancing)

these are good defaults for most parallel programs.  Single-threaded
programs that want to make use of parallel GC will probably want +RTS
-qg1 (this is documented).

I've also updated the docs.

10 years agoUpdate the "Hints for using SMP parallelism" section
Simon Marlow [Tue, 15 Sep 2009 08:34:31 +0000 (08:34 +0000)] 
Update the "Hints for using SMP parallelism" section
In particular, remove the claim that the GC is single-threaded!

10 years agoFix collateral damage after distdir-opts.mk was refactored away
Simon Marlow [Mon, 14 Sep 2009 14:44:27 +0000 (14:44 +0000)] 
Fix collateral damage after distdir-opts.mk was refactored away

10 years agoalow macros to redefine builtin GHCi commands (implements #3084)
Peter Hercek [Tue, 12 May 2009 17:24:59 +0000 (17:24 +0000)] 
alow macros to redefine builtin GHCi commands (implements #3084)

10 years agoFix build on Windows
Simon Marlow [Mon, 14 Sep 2009 11:05:50 +0000 (11:05 +0000)] 
Fix build on Windows

10 years agoAdd "ghc-pkg init" command for creating a new package DB
Simon Marlow [Mon, 14 Sep 2009 10:58:23 +0000 (10:58 +0000)] 
Add "ghc-pkg init" command for creating a new package DB

10 years agoFix a space leak in the native code gen (again)
Simon Marlow [Fri, 11 Sep 2009 15:28:12 +0000 (15:28 +0000)] 
Fix a space leak in the native code gen (again)

10 years agoUse _ rather than : for the builtin package filenames
Ian Lynagh [Sun, 13 Sep 2009 20:40:16 +0000 (20:40 +0000)] 
Use _ rather than : for the builtin package filenames
Using "builtin:foo" creates a file called "builtin" on Windows

10 years agoDon't register the non-munged stage1 ghc package
Ian Lynagh [Sun, 13 Sep 2009 16:19:45 +0000 (16:19 +0000)] 
Don't register the non-munged stage1 ghc package
It confuses the build system.

10 years agoFixes for compiling the HEAD with iteslf
Ian Lynagh [Sun, 13 Sep 2009 14:21:22 +0000 (14:21 +0000)] 
Fixes for compiling the HEAD with iteslf

10 years agoDon't try and put HaddockLex and HaddockParse into src dists
Ian Lynagh [Sat, 12 Sep 2009 17:50:50 +0000 (17:50 +0000)] 
Don't try and put HaddockLex and HaddockParse into src dists
They no longer exist.

10 years agoParsePkgConf no longer exists, so don't try to put it in source dists
Ian Lynagh [Sat, 12 Sep 2009 17:32:53 +0000 (17:32 +0000)] 
ParsePkgConf no longer exists, so don't try to put it in source dists

10 years agoTweak an error message
Ian Lynagh [Sat, 12 Sep 2009 17:32:23 +0000 (17:32 +0000)] 
Tweak an error message

10 years agoRefactor sdist so that we can see which command is being run
Ian Lynagh [Sat, 12 Sep 2009 17:16:27 +0000 (17:16 +0000)] 
Refactor sdist so that we can see which command is being run

10 years agoFix the location of the package database in the installed ghc-pkg
Ian Lynagh [Sat, 12 Sep 2009 14:40:46 +0000 (14:40 +0000)] 
Fix the location of the package database in the installed ghc-pkg
It was using the old filename, rather than the new directory name.

10 years agoMore bindist fixes
Ian Lynagh [Sat, 12 Sep 2009 14:32:48 +0000 (14:32 +0000)] 
More bindist fixes

10 years agoAdd includes/ghcautoconf.h and includes/ghcplatform.h to bindists
Ian Lynagh [Sat, 12 Sep 2009 13:28:42 +0000 (13:28 +0000)] 
Add includes/ghcautoconf.h and includes/ghcplatform.h to bindists

10 years agoUpdate the URL in the usage info to point to the current docs location
Ian Lynagh [Fri, 11 Sep 2009 22:07:35 +0000 (22:07 +0000)] 
Update the URL in the usage info to point to the current docs location

10 years agomove hschooks.c to ghc/, and enable it
Simon Marlow [Fri, 11 Sep 2009 14:07:02 +0000 (14:07 +0000)] 
move hschooks.c to ghc/, and enable it

10 years agoFix #3408: lengthen the idle GC time to 5s for GHC/GHCi.
Simon Marlow [Fri, 11 Sep 2009 12:45:47 +0000 (12:45 +0000)] 
Fix #3408: lengthen the idle GC time to 5s for GHC/GHCi.

10 years agoComments and Cmm notes
simonpj@microsoft.com [Fri, 11 Sep 2009 13:35:13 +0000 (13:35 +0000)] 
Comments and Cmm notes

10 years agoRemove the old package.conf parser, use read instead (fixed #3410)
Simon Marlow [Fri, 11 Sep 2009 11:49:28 +0000 (11:49 +0000)] 
Remove the old package.conf parser, use read instead (fixed #3410)
Performance isn't an issue for reading the old-style package.conf
files, so we might as well revert to using read and fix a bug at the
same time.

10 years agoFix some makefile logic, and remove the now unused *_USE_BOOT_LIBS vars
Ian Lynagh [Fri, 11 Sep 2009 12:31:35 +0000 (12:31 +0000)] 
Fix some makefile logic, and remove the now unused *_USE_BOOT_LIBS vars

10 years agoChange a sed separator character to make it easier to read
Ian Lynagh [Fri, 11 Sep 2009 12:18:27 +0000 (12:18 +0000)] 
Change a sed separator character to make it easier to read

10 years agoUse -fno-warn-name-shadowing when compiling Binary.hs
Ian Lynagh [Fri, 11 Sep 2009 11:47:56 +0000 (11:47 +0000)] 
Use -fno-warn-name-shadowing when compiling Binary.hs

10 years agoImprove optimisation of cost centres
simonpj@microsoft.com [Fri, 11 Sep 2009 11:56:30 +0000 (11:56 +0000)] 
Improve optimisation of cost centres

This patch fixes test failures for the profiling way for drv001.
The problem was that the arity of a function was decreasing during
"optimisation" because of interaction with SCC annotations.
In particular
      f = /\a. scc "f" (h x)    -- where h had arity 2
and h gets inlined, led to
      f = /\a. scc "f" let v = scc "f" x in \y. <blah>

Two main changes:

1.  exprIsTrivial now says True for (scc "f" x)
    See Note [SCCs are trivial] in CoreUtils

2.  The simplifier eliminates nested pushing of the same cost centre:
   scc "f" (...(scc "f" e)...)
   ==>  scc "f" (...e...)

10 years agoFix build with GHC <= 6.10.1
Simon Marlow [Fri, 11 Sep 2009 10:31:42 +0000 (10:31 +0000)] 
Fix build with GHC <= 6.10.1

10 years agoloosen base dependency to allow base-3
Simon Marlow [Fri, 11 Sep 2009 09:31:39 +0000 (09:31 +0000)] 
loosen base dependency to allow base-3