Gabor Pali [Fri, 22 Aug 2014 07:03:09 +0000 (09:03 +0200)]
Fix #9465.
It turned out the sed(1) expressions are not fully portable. So revist my
earlier attempt for getting GHC_LDFLAGS in the configure script and rewrite
it in Perl instead.
Karel Gardas [Thu, 21 Aug 2014 07:00:15 +0000 (09:00 +0200)]
T8832: fix no newline at end of file warning
Austin Seipp [Wed, 20 Aug 2014 17:50:14 +0000 (12:50 -0500)]
includes: detabify/dewhitespace rts/storage/ClosureMacros.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:49:33 +0000 (12:49 -0500)]
[ci skip] includes: detabify/dewhitespace rts/storage/InfoTables.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:49:27 +0000 (12:49 -0500)]
[ci skip] includes: detabify/dewhitespace rts/storage/Block.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:47:32 +0000 (12:47 -0500)]
[ci skip] includes: detabify/dewhitespace rts/storage/GC.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:47:21 +0000 (12:47 -0500)]
[ci skip] includes: detabify/dewhitespace rts/storage/Closures.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:47:07 +0000 (12:47 -0500)]
[ci skip] includes: detabify/dewhitespace rts/storage/TSO.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:46:58 +0000 (12:46 -0500)]
[ci skip] includes: detabify/dewhitespace rts/storage/MBlock.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:46:33 +0000 (12:46 -0500)]
[ci skip] includes: detabify/dewhitespace rts/prof/LDV.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:46:24 +0000 (12:46 -0500)]
[ci skip] includes: detabify/dewhitespace rts/prof/CCS.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:45:21 +0000 (12:45 -0500)]
[ci skip] includes: detabify/dewhitespace rts/Hpc.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:44:28 +0000 (12:44 -0500)]
[ci skip] includes: detabify/dewhitespace rts/OSThreads.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:44:19 +0000 (12:44 -0500)]
[ci skip] includes: detabify/dewhitespace rts/Stable.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:44:10 +0000 (12:44 -0500)]
[ci skip] includes: detabify/dewhitespace rts/Threads.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:44:03 +0000 (12:44 -0500)]
[ci skip] includes: detabify/dewhitespace rts/Ticky.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:43:32 +0000 (12:43 -0500)]
[ci skip] includes: detabify/dewhitespace stg/Types.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:43:21 +0000 (12:43 -0500)]
[ci skip] includes: detabify/dewhitespace stg/SMP.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:43:14 +0000 (12:43 -0500)]
[ci skip] includes: detabify/dewhitespace stg/Regs.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:42:08 +0000 (12:42 -0500)]
[ci skip] includes: detabify/dewhitespace Cmm.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:41:46 +0000 (12:41 -0500)]
[ci skip] includes: detabify/dewhitespace HsFFI.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:40:58 +0000 (12:40 -0500)]
[ci skip] includes: detabify/dewhitespace Rts.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:40:48 +0000 (12:40 -0500)]
[ci skip] includes: detabify/dewhitespace RtsAPI.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:40:24 +0000 (12:40 -0500)]
[ci skip] includes: detabify/dewhitespace Stg.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Gabor Greif [Wed, 20 Aug 2014 17:39:56 +0000 (19:39 +0200)]
Comment why the include is necessary
Austin Seipp [Wed, 20 Aug 2014 17:30:49 +0000 (12:30 -0500)]
rts: detabify/dewhitespace LdvProfile.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:29:22 +0000 (12:29 -0500)]
rts: detabify/dewhitespace Disassembler.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:28:01 +0000 (12:28 -0500)]
rts: detabify/dewhitespace RtsUtils.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:27:39 +0000 (12:27 -0500)]
rts: detabify/dewhitespace RtsStartup.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:27:28 +0000 (12:27 -0500)]
rts: detabify/dewhitespace RtsAPI.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:27:18 +0000 (12:27 -0500)]
rts: detabify/dewhitespace RtsMain.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:26:59 +0000 (12:26 -0500)]
rts: detabify/dewhitespace Sparks.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:26:37 +0000 (12:26 -0500)]
rts: detabify/dewhitespace StgPrimFloat.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:26:29 +0000 (12:26 -0500)]
rts: detabify/dewhitespace StgPrimFloat.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:26:04 +0000 (12:26 -0500)]
rts: detabify/dewhitespace StgStartup.cmm
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:25:52 +0000 (12:25 -0500)]
rts: detabify/dewhitespace StgStdThunks.cmm
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:25:24 +0000 (12:25 -0500)]
rts: detabify/dewhitespace AutoApply.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:24:37 +0000 (12:24 -0500)]
rts: detabify/dewhitespace Task.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:24:19 +0000 (12:24 -0500)]
rts: detabify/dewhitespace Printer.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:22:48 +0000 (12:22 -0500)]
rts: detabify/dewhitespace Hpc.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:22:24 +0000 (12:22 -0500)]
rts: detabify/dewhitespace Apply.cmm
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:21:10 +0000 (12:21 -0500)]
rts: detabify/dewhitespace sm/MBlock.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:21:03 +0000 (12:21 -0500)]
rts: detabify/dewhitespace sm/GCUtils.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:20:41 +0000 (12:20 -0500)]
rts: detabify/dewhitespace sm/GCUtils.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:20:17 +0000 (12:20 -0500)]
rts: detabify/dewhitespace sm/GCAux.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:19:48 +0000 (12:19 -0500)]
rts: detabify/dewhitespace sm/MarkWeak.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:19:20 +0000 (12:19 -0500)]
rts: detabify/dewhitespace sm/BlockAlloc.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:18:42 +0000 (12:18 -0500)]
rts: detabify/dewhitespace sm/Storage.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:17:50 +0000 (12:17 -0500)]
rts: detabify/dewhitespace Task.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:17:25 +0000 (12:17 -0500)]
rts: reflow some comments in STM.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:16:40 +0000 (12:16 -0500)]
rts: detabify/dewhitespace STM.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:16:09 +0000 (12:16 -0500)]
rts: detabify/dewhitespace Trace.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:15:58 +0000 (12:15 -0500)]
rts: detabify/dewhitespace Timer.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:15:15 +0000 (12:15 -0500)]
rts: detabify/dewhitespace Updates.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:14:33 +0000 (12:14 -0500)]
rts: detabify/dewhitespace Weak.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 17:13:45 +0000 (12:13 -0500)]
rts: detabify/dewhitespace Ticky.c
Signed-off-by: Austin Seipp <austin@well-typed.com>
Reid Barton [Wed, 20 Aug 2014 16:17:16 +0000 (12:17 -0400)]
Add a missing newline to a GHCi linker debugBelch
Reid Barton [Wed, 20 Aug 2014 14:42:10 +0000 (10:42 -0400)]
Update a comment in base cbits
Austin Seipp [Wed, 20 Aug 2014 12:12:01 +0000 (07:12 -0500)]
genprimopcode: Don't output tabs
Otherwise the build breaks, because its output is included in tab-free
files. See ef9dd9f.
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:46:22 +0000 (03:46 -0500)]
basicTypes: detabify/dewhitespace IdInfo
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:45:44 +0000 (03:45 -0500)]
basicTypes: detabify/dewhitespace NameEnv
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:45:15 +0000 (03:45 -0500)]
basicTypes: detabify/dewhitespace NameSet
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:44:52 +0000 (03:44 -0500)]
basicTypes: detabify/dewhitespace Var
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:43:14 +0000 (03:43 -0500)]
hsSyn: detabify/dewhitespace HsLit
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:42:38 +0000 (03:42 -0500)]
stranal: detabify/dewhitespace DmdAnal
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:41:32 +0000 (03:41 -0500)]
deSugar: detabify/dewhitespace DsCCall
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:40:18 +0000 (03:40 -0500)]
coreSyn: detabify/dewhitespace CoreSubst
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:39:40 +0000 (03:39 -0500)]
coreSyn: detabify/dewhitespace CoreTidy
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:38:01 +0000 (03:38 -0500)]
prelude: detabify/dewhitespace TysPrim
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:36:39 +0000 (03:36 -0500)]
simplCore: detabify/dewhitespace LiberateCase
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:35:36 +0000 (03:35 -0500)]
simplCore: detabify/dewhitespace SetLevels
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:33:57 +0000 (03:33 -0500)]
utils: detabify/dewhitespace GraphPpr
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:33:28 +0000 (03:33 -0500)]
utils: detabify/dewhitespace GraphBase
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:33:02 +0000 (03:33 -0500)]
utils: detabify/dewhitespace BufWrite
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:31:49 +0000 (03:31 -0500)]
simplCore: detabify/dewhitespace SAT
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:31:18 +0000 (03:31 -0500)]
stranal: detabify/dewhitespace WorkWrap
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Wed, 20 Aug 2014 08:29:49 +0000 (03:29 -0500)]
coreSyn: detabify/dewhitespace TrieMap
Signed-off-by: Austin Seipp <austin@well-typed.com>
Simon Peyton Jones [Wed, 20 Aug 2014 08:12:55 +0000 (09:12 +0100)]
Comments fix to Trac #9140
Gabor Greif [Tue, 19 Aug 2014 22:32:58 +0000 (00:32 +0200)]
Make sure that a prototype is included for 'setIOManagerControlFd'
Facundo Domínguez [Tue, 19 Aug 2014 19:10:32 +0000 (16:10 -0300)]
Fix prepositions in the documentation of -rdynamic.
Sergei Trofimovich [Tue, 19 Aug 2014 13:54:13 +0000 (16:54 +0300)]
validate: add simple CPU count autodetection
Summary: Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Test Plan: ran ./validate on linux
Reviewers: austin
Reviewed By: austin
Subscribers: phaskell, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D146
Andreas Voellmy [Tue, 19 Aug 2014 13:02:18 +0000 (08:02 -0500)]
rts/base: Fix #9423
Summary:
Fix #9423.
The problem in #9423 is caused when code invoked by `hs_exit()` waits
on all foreign calls to return, but some IO managers are in `safe` foreign
calls and do not return. The previous design signaled to the timer manager
(via its control pipe) that it should "die" and when the timer manager
returned to Haskell-land, the Haskell code in timer manager then signalled
to the IO manager threads that they should return from foreign calls and
`die`. Unfortunately, in the shutdown sequence the timer manager is unable
to return to Haskell-land fast enough and so the code that signals to the
IO manager threads (via their control pipes) is never executed and the IO
manager threads remain out in the foreign calls.
This patch solves this problem by having the RTS signal to all the IO
manager threads (via their control pipes; and in addition to signalling
to the timer manager thread) that they should shutdown (in `ioManagerDie()`
in `rts/Signals.c`. To do this, we arrange for each IO manager thread to
register its control pipe with the RTS (in `GHC.Thread.startIOManagerThread`).
In addition, `GHC.Thread.startTimerManagerThread` registers its control pipe.
These are registered via C functions `setTimerManagerControlFd` (in
`rts/Signals.c`) and `setIOManagerControlFd` (in `rts/Capability.c`). The IO
manager control pipe file descriptors are stored in a new field of the
`Capability_ struct`.
Test Plan: See the notes on #9423 to recreate the problem and to verify that it no longer occurs with the fix.
Auditors: simonmar
Reviewers: simonmar, edsko, ezyang, austin
Reviewed By: austin
Subscribers: phaskell, simonmar, ezyang, carter, relrod
Differential Revision: https://phabricator.haskell.org/D129
GHC Trac Issues: #9423, #9284
Joachim Breitner [Tue, 19 Aug 2014 12:03:05 +0000 (14:03 +0200)]
travis: Use hvr’s multi-ghc-PPA
Thomas Miedema [Fri, 20 Jun 2014 23:57:53 +0000 (01:57 +0200)]
Check if file is present instead of directory
Fixes #8886.
Problem: any `sync-all` command that is run before the first succesfull
`sync-all get` would trigger a false warning about an old `time` package
being present.
Cause: after cloning the ghc repository, the (empty) `libraries/time`
directory is already present.
Solution: check if the directory actually contains any of the `time`
files. I picked the `LICENSE` file, since `boot` does so as well.
Signed-off-by: Austin Seipp <austin@well-typed.com>
archblob [Tue, 19 Aug 2014 11:51:38 +0000 (06:51 -0500)]
Correct checkStrictBinds for generalised type
See Trac #9140.
Auditors: simonpj
Signed-off-by: Austin Seipp <austin@well-typed.com>
Vitaly Bragilevsky [Tue, 8 Jul 2014 17:05:05 +0000 (21:05 +0400)]
Add test case for #9046
Signed-off-by: Austin Seipp <austin@well-typed.com>
Austin Seipp [Tue, 19 Aug 2014 11:36:02 +0000 (06:36 -0500)]
build: require GHC 7.6 for bootstrapping
Summary:
Per the usual standards, a build of GHC is only compileable
by the last two releases (e.g. 7.8 only by 7.4 and 7.6). To make sure
we don't get suckered into supporting older compilers, let's remove
this support now.
Signed-off-by: Austin Seipp <austin@well-typed.com>
Test Plan:
Try to bootstrap with GHC 7.4, watch it fail. Bootstrap
with 7.6 or better, and everything works.
Reviewers: hvr
Reviewed By: hvr
Subscribers: simonmar, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D167
Alexander Berntsen [Fri, 16 May 2014 15:32:04 +0000 (17:32 +0200)]
Mention that `Data.Ix` uses row-major indexing
This addresses Trac #8712 by simply mentioning row-major indexing,
thereby removing any ambiguity.
Signed-off-by: Austin Seipp <austin@well-typed.com>
Thomas Miedema [Fri, 20 Jun 2014 23:07:59 +0000 (01:07 +0200)]
Explain how to clone GitHub forks. Ticket #8379.
This information is mirrored at:
http://ghc.haskell.org/trac/ghc/wiki/Building/GettingTheSources#GettingaGHCrepositoryfromGitHub
Signed-off-by: Austin Seipp <austin@well-typed.com>
Bob Ippolito [Fri, 30 May 2014 16:31:34 +0000 (09:31 -0700)]
Use absolute links to Cabal docs from the GHC users guide (#9154)
Signed-off-by: Austin Seipp <austin@well-typed.com>
Sergei Trofimovich [Tue, 19 Aug 2014 07:05:43 +0000 (10:05 +0300)]
includes/stg/Prim.h: add matching 'hs_atomic_*' prototypes
Fixes implicit function declarations in C codegen.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Gabor Greif [Tue, 19 Aug 2014 06:35:06 +0000 (08:35 +0200)]
This note's name has been fixed
Facundo Domínguez [Tue, 19 Aug 2014 02:50:33 +0000 (21:50 -0500)]
Have the RTS linker search symbols in the originating windows binary.
Summary: In initLinker, this patch adds the handle of the module corresponding to the program binary to the list of DLL handles that lookupSymbol uses to search for symbols.
Test Plan: validate
Reviewers: simonmar, austin
Reviewed By: simonmar, austin
Subscribers: phaskell, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D103
GHC Trac Issues: #9382
Facundo Domínguez [Tue, 19 Aug 2014 02:50:15 +0000 (21:50 -0500)]
Implement -rdynamic in Linux and Windows/MinGW32.
Summary:
In Linux, it is a synonym for -optl -rdynamic.
In Windows, it is a synonym for -optl -export-all-symbols.
Test Plan: validate
Reviewers: simonmar, austin
Reviewed By: simonmar, austin
Subscribers: mboes, phaskell, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D102
GHC Trac Issues: #9381
Sergei Trofimovich [Tue, 19 Aug 2014 02:45:11 +0000 (21:45 -0500)]
UNREG: fix PackageKey emission into .hc files
Summary:
Fixes ./configure --unable-unregisterised build failure:
HC [stage 1] (one of the first calls)
...
<command line>: unknown package: transformers-0.4.1.0
The reason of bug is how UNREG build stores package information
in .hc files:
compiler/main/CodeOutput.lhs generates first line as
/* GHC_PACKAGES pkg-name-ver1 pkg-name-ver2 ...
while DriverPipeline.hs (getHCFilePackages) expects
/* GHC_PACKAGES pkg-key1 pkg-key2 ...
Fix it by emitting ghc's PackageKey in CodeOutput
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Test Plan: build-tested on ./configure --enable-unregistersied
Reviewers: simonmar, ezyang, austin
Reviewed By: ezyang, austin
Subscribers: simonmar, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D164
Ben Gamari [Tue, 19 Aug 2014 02:44:25 +0000 (21:44 -0500)]
Bug #9439: Ensure that stage 0 compiler isn't affected
Summary:
Bug #9439 will cause miscompilation of GHC's LLVM backend. Here we
ensure that an affected compiler isn't used to bootstrap.
Test Plan: Attempt to bootstrap GHC with an affected stage 0 compiler.
Reviewers: rwbarton, austin
Reviewed By: austin
Subscribers: simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D159
Alexander Berntsen [Tue, 19 Aug 2014 02:43:33 +0000 (21:43 -0500)]
Make Prelude.signum handle -0.0 correctly (#7858)
Summary:
Make the `Float` and `Double` implementations of `signum` handle -0.0
correctly per IEEE-754.
This, together with "Make Prelude.abs handle -0.0 correctly (#7858)",
fixes Trac #7858.
Depends on D145
Signed-off-by: Alexander Berntsen <alexander@plaimi.net>
Test Plan:
signum of (-0.0) should be (-0.0) not 0.0.
Test program:
main =
putStrLn $ p ++ " " ++ n
where
f = show . signum
p = f (-0.0 :: Double)
n = f (0.0 :: Double)
Reviewers: ekmett, hvr, rwbarton, austin
Reviewed By: austin
Subscribers: phaskell, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D148
GHC Trac Issues: #7858
Alexander Berntsen [Tue, 19 Aug 2014 02:42:12 +0000 (21:42 -0500)]
Make Prelude.abs handle -0.0 correctly (#7858)
Summary:
Make the `Float` and `Double` implementations of `abs` handle -0.0
correctly per IEEE-754.
abs (-0.0::Float) and abs (-0.0::Double) previously returned -0.0, when
they should return 0.0. This patch fixes this.
Signed-off-by: Alexander Berntsen <alexander@plaimi.net>
Test Plan: abs (-0.0::Double) should = 0.0 instead of (-0.0)
Reviewers: ekmett, hvr, austin, rwbarton
Reviewed By: austin, rwbarton
Subscribers: phaskell, trofi, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D145
GHC Trac Issues: #7858
Ben Gamari [Tue, 19 Aug 2014 02:40:21 +0000 (21:40 -0500)]
testsuite/T9379: Use GHC.Conc instead of Control.Concurrent.STM
Summary:
`GHC.Conc` provides almost everything we need.
Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
Test Plan:
make test TEST=T9379
Reviewers: austin, simonmar
Reviewed By: austin, simonmar
Subscribers: phaskell, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D152
Andrew Farmer [Tue, 19 Aug 2014 02:40:12 +0000 (21:40 -0500)]
Fix three problems with occurrence analysis on case alternatives.
Summary:
1. Respect condition (a) in Note [Binder swap]
2. Respect condition (b) in Note [Binder swap]
3. Return usage of any coercion variables in binder swap
Fixes T9440
Test Plan: See #9440
Reviewers: simonpj, austin
Reviewed By: simonpj, austin
Subscribers: simonpj, simonmar, relrod, ezyang, carter
Differential Revision: https://phabricator.haskell.org/D156
GHC Trac Issues: #9440