ghc.git
5 years agorts/Linker.c: declare 'deRefStablePtr' as an exported 'rts' symbol
Sergei Trofimovich [Sat, 23 Aug 2014 10:11:23 +0000 (13:11 +0300)] 
rts/Linker.c: declare 'deRefStablePtr' as an exported 'rts' symbol

    $ inplace/bin/ghc-stage2 -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-package-db -rtsopts -optc-fno-builtin -fno-ghci-history \
        testsuite/tests/ffi/should_run/T4038.hs --interactive -v0 -ignore-dot-ghci +RTS -I0.1 -RTS

    *Main> main
    <interactive>: /tmp/ghc16668_0/ghc16668_5.o: unknown symbol `deRefStablePtr'

The reference to 'deRefStablePtr' is generated by 'compiler/deSugar/DsForeign.lhs':
    the_cfun
       = case maybe_target of
          Nothing    -> text "(StgClosure*)deRefStablePtr(the_stableptr)"
          Just hs_fn -> char '&' <> ppr hs_fn <> text "_closure"

Patch fixes all broken tests using 'import wrapper':
    TEST="ffi013 ffi010 ffi011 ffi005 ffi020 ffi006 ffi019 fed001 T1679 T4038"

Tests manifested as broken only in DYNAMIC_GHC_PROGRAMS=NO builds,
where GHCi's custom linker is used instead of system's linker.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
5 years agotestsuite: mark testwsdeque mark as faulty on NOSMP builds
Sergei Trofimovich [Sat, 23 Aug 2014 08:32:05 +0000 (11:32 +0300)] 
testsuite: mark testwsdeque mark as faulty on NOSMP builds

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
5 years agotestsuite: disable memcpy asm comparison tests on UNREG
Sergei Trofimovich [Sat, 23 Aug 2014 08:22:59 +0000 (11:22 +0300)] 
testsuite: disable memcpy asm comparison tests on UNREG

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
5 years agotestsuite: disable gcc's warnings about casts of incompatible prototypes in UNREG
Sergei Trofimovich [Sat, 23 Aug 2014 08:01:16 +0000 (11:01 +0300)] 
testsuite: disable gcc's warnings about casts of incompatible prototypes in UNREG

Haskell's 'foreign import' declaraion does not have a way
to extress exact C prototypes (it ignores 'const' modifiers, exact pointer
types, etc.) which leads to warnings when C backend generates calls to such
functions:

    /tmp/ghc32698_0/ghc32698_10.hc:52:5:
         warning: conflicting types for built-in function ‘strlen’ [enabled by default]
         EF_(strlen);
             ^

Patch disables builtin functions for UNREG build
to workaround test failures due to stderr mismatch.

Fixes the following test failures:
    TEST="safePkg01 T5423 T7574 T3736"

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
5 years agotestsuite: T7815 requires SMP support from ghc
Sergei Trofimovich [Fri, 22 Aug 2014 22:20:11 +0000 (01:20 +0300)] 
testsuite: T7815 requires SMP support from ghc

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
5 years agoEnable GHC API tests by default.
Edward Z. Yang [Fri, 22 Aug 2014 17:01:43 +0000 (18:01 +0100)] 
Enable GHC API tests by default.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agoNormalise GHC version number to make tests less fragile.
Edward Z. Yang [Fri, 22 Aug 2014 14:05:29 +0000 (15:05 +0100)] 
Normalise GHC version number to make tests less fragile.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agoRevert "rts/base: Fix #9423"
Austin Seipp [Fri, 22 Aug 2014 13:51:38 +0000 (08:51 -0500)] 
Revert "rts/base: Fix #9423"

This should fix the Windows fallout, and hopefully this will be fixed
once that's sorted out.

This reverts commit f9f89b7884ccc8ee5047cf4fffdf2b36df6832df.

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoDo not zero out version number when processing wired-in packages.
Edward Z. Yang [Fri, 22 Aug 2014 00:29:28 +0000 (01:29 +0100)] 
Do not zero out version number when processing wired-in packages.

Summary:
Previously, GHC would look for instances of wired-in packages in the
in-memory package database and null out the version number.  This was
necessary when the sourcePackageId was used to determine the linker
symbols; however, we now use a package key, so only that needs to be
updated.

Long-term, we can remove this hack by ensuring that Cabal actually records
the proper package key in the database.  This will also fix an unrelated
hack elsewhere.

Keeping version numbers means that wired in packages get rendered differently
when output by GHC.  This is the source of all the test-case output changes.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: hvr, austin

Subscribers: simonmar, ezyang, carter

Differential Revision: https://phabricator.haskell.org/D170

5 years agosubmodule update hpc/stm with gitignore.
Edward Z. Yang [Fri, 22 Aug 2014 13:23:56 +0000 (14:23 +0100)] 
submodule update hpc/stm with gitignore.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agogitignore: Ignore tests/rts/rdynamic
Edward Z. Yang [Fri, 22 Aug 2014 00:40:55 +0000 (01:40 +0100)] 
gitignore: Ignore tests/rts/rdynamic

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
5 years agoFix #9465.
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.

5 years agoT8832: fix no newline at end of file warning
Karel Gardas [Thu, 21 Aug 2014 07:00:15 +0000 (09:00 +0200)] 
T8832: fix no newline at end of file warning

5 years agoincludes: detabify/dewhitespace rts/storage/ClosureMacros.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/storage/InfoTables.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/storage/Block.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/storage/GC.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/storage/Closures.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/storage/TSO.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/storage/MBlock.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/prof/LDV.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/prof/CCS.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/Hpc.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/OSThreads.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/Stable.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/Threads.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace rts/Ticky.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace stg/Types.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace stg/SMP.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace stg/Regs.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace Cmm.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace HsFFI.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace Rts.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace RtsAPI.h
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>
5 years ago[ci skip] includes: detabify/dewhitespace Stg.h
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>
5 years agoComment why the include is necessary
Gabor Greif [Wed, 20 Aug 2014 17:39:56 +0000 (19:39 +0200)] 
Comment why the include is necessary

5 years agorts: detabify/dewhitespace LdvProfile.c
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>
5 years agorts: detabify/dewhitespace Disassembler.c
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>
5 years agorts: detabify/dewhitespace RtsUtils.c
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>
5 years agorts: detabify/dewhitespace RtsStartup.c
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>
5 years agorts: detabify/dewhitespace RtsAPI.c
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>
5 years agorts: detabify/dewhitespace RtsMain.c
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>
5 years agorts: detabify/dewhitespace Sparks.c
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>
5 years agorts: detabify/dewhitespace StgPrimFloat.h
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>
5 years agorts: detabify/dewhitespace StgPrimFloat.c
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>
5 years agorts: detabify/dewhitespace StgStartup.cmm
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>
5 years agorts: detabify/dewhitespace StgStdThunks.cmm
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>
5 years agorts: detabify/dewhitespace AutoApply.h
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>
5 years agorts: detabify/dewhitespace Task.h
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>
5 years agorts: detabify/dewhitespace Printer.h
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>
5 years agorts: detabify/dewhitespace Hpc.c
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>
5 years agorts: detabify/dewhitespace Apply.cmm
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>
5 years agorts: detabify/dewhitespace sm/MBlock.c
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>
5 years agorts: detabify/dewhitespace sm/GCUtils.c
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>
5 years agorts: detabify/dewhitespace sm/GCUtils.h
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>
5 years agorts: detabify/dewhitespace sm/GCAux.c
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>
5 years agorts: detabify/dewhitespace sm/MarkWeak.c
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>
5 years agorts: detabify/dewhitespace sm/BlockAlloc.c
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>
5 years agorts: detabify/dewhitespace sm/Storage.h
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>
5 years agorts: detabify/dewhitespace Task.c
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>
5 years agorts: reflow some comments in STM.c
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>
5 years agorts: detabify/dewhitespace STM.c
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>
5 years agorts: detabify/dewhitespace Trace.c
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>
5 years agorts: detabify/dewhitespace Timer.c
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>
5 years agorts: detabify/dewhitespace Updates.h
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>
5 years agorts: detabify/dewhitespace Weak.c
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>
5 years agorts: detabify/dewhitespace Ticky.c
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>
5 years agoAdd a missing newline to a GHCi linker debugBelch
Reid Barton [Wed, 20 Aug 2014 16:17:16 +0000 (12:17 -0400)] 
Add a missing newline to a GHCi linker debugBelch

5 years agoUpdate a comment in base cbits
Reid Barton [Wed, 20 Aug 2014 14:42:10 +0000 (10:42 -0400)] 
Update a comment in base cbits

5 years agogenprimopcode: Don't output tabs
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>
5 years agobasicTypes: detabify/dewhitespace IdInfo
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>
5 years agobasicTypes: detabify/dewhitespace NameEnv
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>
5 years agobasicTypes: detabify/dewhitespace NameSet
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>
5 years agobasicTypes: detabify/dewhitespace Var
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>
5 years agohsSyn: detabify/dewhitespace HsLit
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>
5 years agostranal: detabify/dewhitespace DmdAnal
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>
5 years agodeSugar: detabify/dewhitespace DsCCall
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>
5 years agocoreSyn: detabify/dewhitespace CoreSubst
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>
5 years agocoreSyn: detabify/dewhitespace CoreTidy
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>
5 years agoprelude: detabify/dewhitespace TysPrim
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>
5 years agosimplCore: detabify/dewhitespace LiberateCase
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>
5 years agosimplCore: detabify/dewhitespace SetLevels
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>
5 years agoutils: detabify/dewhitespace GraphPpr
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>
5 years agoutils: detabify/dewhitespace GraphBase
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>
5 years agoutils: detabify/dewhitespace BufWrite
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>
5 years agosimplCore: detabify/dewhitespace SAT
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>
5 years agostranal: detabify/dewhitespace WorkWrap
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>
5 years agocoreSyn: detabify/dewhitespace TrieMap
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>
5 years agoComments fix to Trac #9140
Simon Peyton Jones [Wed, 20 Aug 2014 08:12:55 +0000 (09:12 +0100)] 
Comments fix to Trac #9140

5 years agoMake sure that a prototype is included for 'setIOManagerControlFd'
Gabor Greif [Tue, 19 Aug 2014 22:32:58 +0000 (00:32 +0200)] 
Make sure that a prototype is included for 'setIOManagerControlFd'

5 years agoFix prepositions in the documentation of -rdynamic.
Facundo Domínguez [Tue, 19 Aug 2014 19:10:32 +0000 (16:10 -0300)] 
Fix prepositions in the documentation of -rdynamic.

5 years agovalidate: add simple CPU count autodetection
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

5 years agorts/base: Fix #9423
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

5 years agotravis: Use hvr’s multi-ghc-PPA
Joachim Breitner [Tue, 19 Aug 2014 12:03:05 +0000 (14:03 +0200)] 
travis: Use hvr’s multi-ghc-PPA

5 years agoCheck if file is present instead of directory
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>
5 years agoCorrect checkStrictBinds for generalised type
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>
5 years agoAdd test case for #9046
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>
5 years agobuild: require GHC 7.6 for bootstrapping
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

5 years agoMention that `Data.Ix` uses row-major indexing
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>
5 years agoExplain how to clone GitHub forks. Ticket #8379.
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>