Patch: Make GHC bulid/run when compiled with GCC 4.1.1 on MinGW
|Reported by:||briansmith||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
- GCC 4.x does not allow casts on lvalues, which are used in Linker.c and in packages/Win32/dumpBMP.c
- GCC 4.x on MinGW includes gettimeofday; we need to tell the linker about it, otherwise GHCi will fail to link base.
The first patch bundle fixes both issues for GHC. The second patch bundle fixes the first problem for packages/Win32.
These were both tested on the 6.6 branch. I would like them to be included in 6.6 if it is not too late.