Fix #8696 - don't generate static intra-package references.

See the comments in Packages.lhs and the ticket for some more explanation.

This is a temporary fix while we consider a way to re-enable intra-package
references in the mean time.

Authored-by: Reid Barton <rwbarton@gmail.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>

(cherry picked from commit ed1aced403b50f1a15fbe06cc7eeca5b23e69e37)
Use U+2018 instead of U+201B quote mark in compiler messages

This matches GCC's choice of Unicode quotation marks (i.e. U+2018 and U+2019)
and therefore looks more familiar on the console. This addresses #2507.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
(cherry picked from commit 018676c7f883886b388652c913c99a10d2591b0b)
Add release note for unicode quotation marks (re #2507)

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Fix typo in 939fe6c827a691c

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Individual sdist-foo targets

so that one can build a source distribution without downloading the
windows tarballs.

(cherry picked from commit 50e4d40f88c3eee41384efacfd83f73305e2210d)
Make distribution tarball compression format configurable

By default, bzip2 compression is selected (which is what has been used
till now). Additionally, by setting the TAR_COMP make variable to one of
the values "bzip2", "gzip", or "xz", an explicit compression format can
be requested for the distribution tarballs. For instance, invoking

  make TAR_COMP=xz sdist-ghc

will result in a tarball `./sdistprep/ghc-7.9.20140226-src.tar.xz`

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>

(cherry picked from commit 32f41c79960ffc1d04c4573acb37756109d279a5)
Follow-up to 32f41c79

These parts were forgotten to be committed together with the rest of
32f41c79960ffc1d04c4573acb37756109d279a5

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>

(cherry picked from commit b1ee32edbe9be7b695cce7975450782e0a290c47)
Fix a bug in codegen for non-updatable selector thunks (#8817)

To evaluate most non-updatable thunks, we can jump directly to the
entry code if we know what it is.  But not for a selector thunk: these
might be updated by the garbage collector, so we have to enter the
closure with an indirect jump through its info pointer.

(cherry picked from commit b1ddec1e6d4695d71d38b59db26829d71ad784e1)
fix comment on allocate() (#8254)

(cherry picked from commit 68c0d8689dd93cb0ce74a288e82f2ed997c31acc)
Add hs_thread_done() (#8124)

See documentation for details.

(cherry picked from commit af6746fb6b5adb5ba5be6e0f647c4ebe767ce084)
PPC: Fix loads of PIC data with > 16 bit offsets (#7830).

Loads should now handle up to 32 bit offsets.

(cherry picked from commit 67029f200c5512f8ba5b9b7c25a5d1131422ef8e)
Documentation updates for 7.8.1 release

Notably, GND is now usable with Safe Haskell. Also, Coercible now is in
Data.Coerce canonically, and we added some more instances.

Signed-off-by: Austin Seipp <austin@well-typed.com>
(cherry picked from commit 71611523c25bb89b81e789d5a2dd3d5d9754b025)
Fix binary-dist target with xz/gzip

This was harmless but annoying: we forgot to take the compression
extention into account when copying the binary dist out of bindistprep

Signed-off-by: Austin Seipp <austin@well-typed.com>
(cherry picked from commit 025a66e7fc416ab9ee1df56ad26dfe6232d32900)
Note that we need Cabal-1.18 in the release notes

Thanks to George Colpitts for helping us remember this!

Signed-off-by: Austin Seipp <austin@well-typed.com>

(cherry picked from commit f9627252fc278ecaafbb1885c31adad7357c0763)
binary-dist: when using xz, use extreme compression.

When building a binary distribution with TAR_COMP=xz, using the -9e flag
(extremely high compression) results in substantial savings: for the
Mavericks builds, bzip2 scores in at about 120mb, while xz at level 9
scores about 60mb - a huge reduction!

This of course takes significantly longer - but it does not affect
decompression speed for end users, so it's certainly worth it.

Signed-off-by: Austin Seipp <austin@well-typed.com>

(cherry picked from commit 251b18aba97329ff41b8479ff78d38505cf086f8)
Update to latest Cabal 1.18 branch tip (again)

This was already performed in 37d6e2c54f117 but accidentally
reverted as a side-effect of 9976c2ece3aa4.

So this update pulls in the fix into ghc-7.8 for #8266 again.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Merge latest upstream changes into ghc-7.8