- 31 Aug, 2001 6 commits
-
-
simonmar authored
Fix worker-wrapper generation. See commments in WwLib.mk_ww_str
-
sewardj authored
Fix Linux compile b0rkage. Darn. MERGE TO STABLE BRANCH
-
sewardj authored
Pass -w to gcc for .hc compilation on sparc-solaris so as to suppress warnings about call-clobbered regs being used for global vars.
-
rje authored
Reapplied my "FCode as a monad" patch, now that 5.02 has forked into a separate branch. I'm fairly sure that this doesn't change the behaviour of anything.
-
sewardj authored
.bss section fixes for ELF. MERGE TO STABLE BRANCH (and test better!)
-
sewardj authored
Properly handle the linker debugging (-D4096) before. MERGE TO STABLE BRANCH
-
- 30 Aug, 2001 5 commits
-
-
rrt authored
Remove a spurious space. Oh, yes.
-
sewardj authored
Advance HEAD version to 5.03.
-
simonmar authored
Don't automatically enable compaction when generations == 1.
-
simonmar authored
Automatically disable compaction when there's only one generation (-G1) and print a warning to that effect.
-
sewardj authored
Back out recent changes to the code generator as too destabilising. Revert files as follows: revert to 1.35 CgBindery.lhs revert to 1.26 CgMonad.lhs revert to 1.15 CgStackery.lhs revert to 1.10 CgUsages.lhs
-
- 29 Aug, 2001 14 commits
-
-
sof authored
make it compile.
-
sof authored
emptyPLS: warning removal
-
qrczak authored
Remove annoying warnings about using a deprecated extension when compiling via gcc-3.0. #if __GNUC__ >= 3 /* Assume that a flexible array member at the end of a struct * can be defined thus: T arr[]; */ #define FLEXIBLE_ARRAY #else /* Assume that it must be defined thus: T arr[0]; */ #define FLEXIBLE_ARRAY 0 #endif A test program (hsking) compiled fine with gcc-3.0!
-
rje authored
Another Haskell equivalent of CTags. Written because fptags and hstags don't seem to be maintained any more and its seemed to be less effort to write a new version, than to figure out how those one's worked.
-
sewardj authored
Make the PEi386 linker able to handle symbols in .bss sections (almost) correctly: * "Anonymous" bss sections (where something like static int a[10] lives) are given a calloc'd block of memory to live in. * Publically visible bss-resident symbols, such as int a[10] are each given their own calloc'd block. The normal way of things is for identically-named symbols in different modules to be commoned up and allocated the largest stated size of any of the symbols. We don't do that -- if two different .o files each declared int a[10], you'll get two independent lumps of memory. Hence "almost" above. These calloc'd lumps (pseudo-bss spaces) are not added to the list of sections extracted for the benefit of the closure-vs-itbl pointer checks done by the garbage collector. I don't think that matters. These fixes need to be propagated to other formats too (viz, ELF). This fixes the problem reported by ??? in which, on Windows, writeFile "foo" "bar" in GHCi gives a segfault. This bug was so horrible to track down and fix that I have instituted range checking in the relocation processing machinery. The runtime linker checks all locations it is patching to ensure they are within a known segment before writing to them. Hopefully this will pick up any future problems. The performance impact of this, assessed by the time to start up GHCi, is unmeasureably small.
-
sewardj authored
Duh. Remember to actually zero out the space in stgCallocBytes. Duh.
-
sewardj authored
Add stgCallocBytes().
-
simonmar authored
Fix *two* bugs in formatRealFloat: The first one is in the Haskell 98 errata, namely that negative exponents cause an infinite loop in the FFFixed case when no precision is specified. eg. `Numeric.showFFloat Nothing 0.02 ""' I've modified the code in the errata to properly handle the e == 0 case and to be slightly more efficient when e > 0. The second bug is this: Prelude> Numeric.showFFloat (Just 0) 0.02 "" "0."
-
rje authored
FCode/Code is now a monad, and thus now also a constructed type, rather than a type synonym. This requires quite a lot of changes in quite a lot of files, but none of these changes should have changed the behaviour of anything. Being a Monad allows code that used FCode to be IMHO rather more readable as it can use do notation, and other common Monad idioms. In addition, state has been abstracted away with getter and setter functions, so that functions mess with the innards of FCode as little as possible - making it easier to change FCode in future.
-
simonmar authored
- use SET_HDR rather than initialising header.info directly (fixes potential bugs with profiling). - add some masking to the Int32/Word32 cases to match the Int8-16 and Word8-16 cases (potential 64-bit bugs).
-
simonmar authored
Add genRange method to class RandomGen, as per the revised Haskell 98 library report.
-
simonmar authored
Make the Permissions type non-abstract as per the revised Haskell 98 report.
-
simonmar authored
update maximumBy and minimumBy in line with the revised Haskell 98 report
-
simonmar authored
Changes to the Ix class from the revised Haskell 98 report: - Ord is no longer a superclass of Ix. - rangeSize is now a class member, as there are cases when it is useful to be able to override it. As a result, GHC's performance-improving "unsafeRangeSize" function also has to be a class method just in case the programmer has overriden rangeSize. Of course, unsafeRangeSize isn't visible when just importing Ix. - Added unsafeRangeSize bindings to all our standard Ix instances. - Improved the Ix instances for Int{8,16,32,64} and Word{8,16,32,64} by defining unsafeIndex instead of index, and providing a definition of unsafeRangeSize. I hope I haven't mucked anything up :) The array tests all pass successfully, except for arr016 which depended on Ord being a superclass of Ix. I'll commit changes to this test shortly.
-
- 28 Aug, 2001 9 commits
-
-
sof authored
bring PprType (and its Outputable Type instance) into scope
-
simonmar authored
Change the definition of recip in the instance of Fractional for Ratio, to: recip (x:%y) = y % x as per the revised Haskell 98 report.
-
simonmar authored
Bring scanr1, scanl, and scanl1 into line with the revised H98 report.
-
simonmar authored
Add instances of Eq & Ord up to size 15 (Bounded, Read & Show will have to wait)
-
simonmar authored
Correct the USE_REPORT_PRELUDE definition of (!!).
-
simonpj authored
---------------------------------------- Make isFFIArgumentTy understand newtypes ---------------------------------------- This fixes the bug Manuel reported: newtype T = T (Ptr T) foreign import ccall foo :: T -> IO (Ptr T) test.hs:6: Unacceptable argument type in foreign declaration: T On the way, I moved isFFIArgumentTy and friends out of TysWiredIn, where they didn't really belong, into TcType. That in turn force me to move isStrictType, and isPrimitiveType.
-
simonpj authored
Add pprEquation
-
simonmar authored
Fix (read "Infinity") and (read "NaN") for RealFloat types.
-
apt authored
fix problem with -fno-code
-
- 27 Aug, 2001 5 commits
-
-
apt authored
shut up shortMeOut traces
-
apt authored
use qualified names to indicate external status of values
-
apt authored
document 31-bit core output option settings
-
simonmar authored
a couple of tweaks to the hc-file-bundle target: - Add -r option to ${RM} to blow away an existing binary-dist temporary directory if present. - Fix bogons in the bundle building code.
-
simonmar authored
foldr is a good consumer (but not necessarily a good producer)
-
- 24 Aug, 2001 1 commit
-
-
simonmar authored
correct off-by-one error in hGetStringBuffer
-