Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ghc-7.8.2-release

Make argument types in popcnt.c match declared primop types
On 64-bit Mac OS, gcc 4.2 (which comes with Xcode 4.6) generates code
that assumes that an argument that is smaller than the register
it is passed in has been sign- or zero-extended. But ghc thinks
the types of the PopCnt*Op primops are Word# -> Word#, so it passes
the entire argument word to the hs_popcnt* function as though it was
declared to have an argument of type StgWord. Segfaults ensue.

The easiest fix is to sidestep all this zero-extension business
by declaring the hs_popcnt* functions to take a whole StgWord (when their
argument would fit in a register), thereby matching the list of primops.

Fixes #7684.

(cherry picked from commit ad9bf96)

ghc-7.8.1-release

Make argument types in popcnt.c match declared primop types
On 64-bit Mac OS, gcc 4.2 (which comes with Xcode 4.6) generates code
that assumes that an argument that is smaller than the register
it is passed in has been sign- or zero-extended. But ghc thinks
the types of the PopCnt*Op primops are Word# -> Word#, so it passes
the entire argument word to the hs_popcnt* function as though it was
declared to have an argument of type StgWord. Segfaults ensue.

The easiest fix is to sidestep all this zero-extension business
by declaring the hs_popcnt* functions to take a whole StgWord (when their
argument would fit in a register), thereby matching the list of primops.

Fixes #7684.

(cherry picked from commit ad9bf96)

ghc-7.4.2-release

Merge branch 'fix#5464' of /home/staff/magal101/repos/ghc/libraries/g…
…hc-prim into fix#5464

Solved conflicts:
	GHC/Types.hs

ghc-7.4.1-release

Merge branch 'fix#5464' of /home/staff/magal101/repos/ghc/libraries/g…
…hc-prim into fix#5464

Solved conflicts:
	GHC/Types.hs

ghc-7.2.1-release

FIX #5227: derive Generic only up to 7-tuples, like Data.

ghc-7.2.2-release

FIX #5227: derive Generic only up to 7-tuples, like Data.
Something went wrong with that request. Please try again.