summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [project @ 2000-02-03 15:56:13 by sewardj]sewardj2000-02-032-11/+18
| | | | | | Remember all the classes loaded from an object file group, and call visitClass on them at the end of processInterfaces(), so that the .level numbers on the class get calculated.
* [project @ 2000-02-03 14:01:07 by sewardj]sewardj2000-02-031-1/+6
| | | | Add hugsprimPmFail.
* [project @ 2000-02-03 13:55:21 by sewardj]sewardj2000-02-036-21/+58
| | | | | -- Make default defaults work in combined mode -- rename some fns in lib/Prelude.hs to match names in HugsPrel.lhs
* [project @ 2000-02-02 11:40:33 by sewardj]sewardj2000-02-023-64/+191
| | | | | | | | | | | | | | | | | trivialCode on x86 is the heart of instruction selection for expressions. It is definitely a non-trivial in complexity. To generate correct code it needs to observe preserve several delicate invariants, but didn't. -- Recorded in MachCode.lhs the "Rules of the Game"; ie what I think the required invariants are. -- Completely rewrote trivialCode (also shift_code). I think it should handle all cases correctly, and has special treatment for literal operands. -- Updated NOTES file to record issues which need to be resolved before x86 nativeGen can be considered ready for public use.
* [project @ 2000-02-01 16:08:17 by sewardj]sewardj2000-02-011-1/+1
| | | | Export findReservedRegs for all architectures.
* [project @ 2000-02-01 16:02:12 by sewardj]sewardj2000-02-011-1/+1
| | | | primOpStrictness(CatchOp): catch# isn't strict in its first arg.
* [project @ 2000-02-01 14:08:22 by sewardj]sewardj2000-02-011-2/+2
| | | | | Double the number of RESERVED_C_STACK_BYTES so as to give the native code generator up to 508 spill slots.
* [project @ 2000-02-01 14:02:02 by sewardj]sewardj2000-02-014-69/+54
| | | | | | | | | | | -- Cosmetic changes in register allocator. -- Implement macro HP_GEN_SEQ_NP. -- MachCode(trivialCode, x86): because one of the operands is also the destination (on this 2-address arch), it's invalid to sequence the code to compute the operands using asmParThen [code1, code2]. since the order of assignments matters. Fixed.
* [project @ 2000-01-31 18:11:50 by sewardj]sewardj2000-01-315-98/+84
| | | | Spilling and x86 shift-code cleanups.
* [project @ 2000-01-31 15:35:05 by simonmar]simonmar2000-01-311-0/+10
| | | | Add configure target to detect when autoconf needs to be run.
* [project @ 2000-01-31 15:12:07 by simonmar]simonmar2000-01-311-1/+3
| | | | Include the configure script in a src dist.
* [project @ 2000-01-31 14:25:34 by sewardj]sewardj2000-01-311-2/+2
| | | | | Change primOpUsg(CatchOp) to reflect changed arity of catch#. Also update primOpStrictness(CatchOp).
* [project @ 2000-01-31 13:17:18 by simonmar]simonmar2000-01-311-8/+1
| | | | | We don't want -keep-{hc,s}-files-too on by default, and why do we need -H32M -K32M for PrelBase.lhs? Hans: I want a word with you :)
* [project @ 2000-01-30 10:25:27 by simonmar]simonmar2000-01-305-39/+63
| | | | | | | | | | | | | | | | | | | | | | | | Change the type of catch# to catch# :: (W# -> (# W#, a #)) -> (b -> W# -> (# W#, a #)) -> W# -> (# W# , a #) where W# == State# RealWorld. In other words, make it explicit that catch# is an IO operation and takes IO operations as arguments. The previous type was too general, and resulted in catch# having the wrong arity which could cause mis-optimisations. The down side is that we now have to pass the state token around inside the primop instead of doing it in the Haskell wrapper, and raiseAsync() also has to build a PAP(handler,exception,realworld) instead of just a PAP(handler,exception) when it invokes a handler as a result of an async exception. I also added some optimisations to (un)?blockAsyncException to not grow the stack if it can be avoided, such as when we're about to block async exceptions and there's a blockAsyncExceptions_ret stack frame on the top of the stack.
* [project @ 2000-01-30 10:17:44 by simonmar]simonmar2000-01-301-2/+5
| | | | | The bd->free field of a block descriptor is supposed to be set to -1 for free blocks, if we're #ifdef DEBUGging. It wasn't sometimes.
* [project @ 2000-01-30 10:16:09 by simonmar]simonmar2000-01-301-2/+7
| | | | Deal with ThreadRelocated in checkTSO().
* [project @ 2000-01-30 10:11:32 by simonmar]simonmar2000-01-301-1/+18
| | | | | Add notes about where the IO representation is wired in to various parts of the source tree, since I'm about to add some more.
* [project @ 2000-01-30 10:08:27 by simonmar]simonmar2000-01-301-1/+8
| | | | comment fixup
* [project @ 2000-01-28 20:52:37 by lewie]lewie2000-01-2847-465/+952
| | | | | | | First pass at implicit parameters. Honest, I didn't really go in *intending* to modify every file in the typechecker... ;-) The breadth of the change is partly due to generalizing contexts so that they are not hardwired to be (Class, [Type]) pairs. See types/Type.lhs for details (look for PredType).
* [project @ 2000-01-28 18:07:55 by sewardj]sewardj2000-01-289-122/+329
| | | | | | | | | | | | | | | | | | | | | | | Modifications to make x86 register spilling to work reasonably. It should work ok most of the time, although there is still a remote possibility that the allocator simply will be unable to complete spilling, and will just give up. -- Incrementally try with 0, 1, 2 and 3 spill regs, so as not to unduly restrict the supply of regs in code which doesn't need spilling. -- Remove the use of %ecx for shift values, so it is always available as the first-choice spill temporary. For code which doesn't do int division, make %edx and %eax available for spilling too. Shifts by a non-constant amount (very rare) are now done by a short test-and-jump sequence, so that %ecx is not tied up. -- x86 FP: do sin, cos, tan in-line so we get the same answers as gcc. -- Moved a little code around to remove recursive dependencies. -- Fix a subtle bug in x86 regUsage, which could cause underestimation of live ranges.
* [project @ 2000-01-28 16:36:03 by simonmar]simonmar2000-01-281-2/+2
| | | | bump version to 4.07 on the main trunk.
* [project @ 2000-01-28 14:14:01 by simonmar]simonmar2000-01-281-1/+1
| | | | don't use ^ in patterns, Solaris sh barfs on it.
* [project @ 2000-01-28 09:40:05 by sewardj]sewardj2000-01-288-136/+144
| | | | | | | | | | | | | | | | Commit all changes prior to addressing the x86 spilling situation in the register allocator. -- Fix nonsensical x86 addressing mode hacks in mangleIndexTree and getAmode. -- Make char-sized loads work properly, using MOVZBL. -- In assignIntCode, use primRep on the assign node to determine the size of data transfer, not the size of the source. -- Redo Integer primitives to be in line with current representation of Integers.
* [project @ 2000-01-27 10:23:09 by rrt]rrt2000-01-271-1/+1
| | | | | Added note about the necessity of using the Cygnus DocBook tools (rather than, e.g., SuSE).
* [project @ 2000-01-26 17:02:32 by rrt]rrt2000-01-261-8/+0
| | | | | Removed redundant rules (%.dvi : %.tex &c.) that were breaking DocBook (re)building.
* [project @ 2000-01-26 16:08:25 by rrt]rrt2000-01-261-2/+2
| | | | Corrected release notes URLs
* [project @ 2000-01-26 13:40:54 by sewardj]sewardj2000-01-263-12/+53
| | | | | | | | Observe the C conventions for use of the FP register stack. In particular, free up any live fp registers prior to non-local control transfers. Sigh. This is not good. The FP situation needs to be reviewed once the rest of x86 nativeGen is stable.
* [project @ 2000-01-26 13:38:36 by sewardj]sewardj2000-01-261-27/+6
| | | | genCCall (x86): pass float args in double format.
* [project @ 2000-01-26 13:38:02 by sewardj]sewardj2000-01-261-2/+2
| | | | | | spillReg, loadReg (x86): always spill fp registers using double-sized loads/stores, even if they nominally contain only a float value -- otherwise the spill loses the extra guard bits.
* [project @ 2000-01-26 13:07:55 by simonmar]simonmar2000-01-261-17/+26
| | | | Finish pass 1 over the build system docs.
* [project @ 2000-01-26 12:45:52 by simonmar]simonmar2000-01-261-237/+136
| | | | Fix some of the gross inaccuracies in this documentation.
* [project @ 2000-01-26 12:27:34 by rrt]rrt2000-01-261-33/+8
| | | | Removed version number and reelucidated some text swallowed by index entries.
* [project @ 2000-01-26 11:40:54 by rrt]rrt2000-01-261-1/+1
| | | | Changed default text size to "normal".
* [project @ 2000-01-26 11:40:26 by sewardj]sewardj2000-01-261-5/+5
| | | | | | spillReg, loadReg (x86): spill above %esp, not below it. Duh. If you spill below %esp, ccalls, which use stack below %esp, can trash the spill area.
* [project @ 2000-01-26 11:35:02 by rrt]rrt2000-01-261-1/+1
| | | | Updated version to 4.06
* [project @ 2000-01-26 10:44:07 by panne]panne2000-01-263-55/+86
| | | | | Sven's first autoheader commandment: Don't change config.h.in manually...! (Why is mk/config.h.in in the repository? configure is not, either.)
* [project @ 2000-01-25 20:09:22 by sewardj]sewardj2000-01-251-0/+6
| | | | Teach magicIdRegMaybe about R9 and R10.
* [project @ 2000-01-25 20:08:33 by sewardj]sewardj2000-01-251-2/+5
| | | | Print a useful panic msg if getRegister(x86) can't reduce a tree.
* [project @ 2000-01-25 19:49:45 by sewardj]sewardj2000-01-251-3/+3
| | | | pprInstr: implement GABS, GNEG, GSQRT.
* [project @ 2000-01-25 19:33:32 by sewardj]sewardj2000-01-251-5/+4
| | | | Handle float args correctly for x86 ccalls.
* [project @ 2000-01-25 19:18:42 by sewardj]sewardj2000-01-251-74/+6
| | | | | Disable a dubious looking clause for trivialCode (x86), which was generating bad code for some subtracts.
* [project @ 2000-01-25 18:09:52 by sewardj]sewardj2000-01-254-5/+30
| | | | | Implement the HP_CHK_GEN macro. As a result, teach mkNativeHdr et al about R9 and R10.
* [project @ 2000-01-25 16:59:30 by sewardj]sewardj2000-01-251-10/+4
| | | | wibble
* [project @ 2000-01-25 16:58:57 by sewardj]sewardj2000-01-251-3/+11
| | | | | | amodeToStix, GET_TAG: implement correctly for little-endian-32 and supply implementation for big-endian-32. Definitely won't work on 64-bit platforms.
* [project @ 2000-01-25 16:57:40 by sewardj]sewardj2000-01-251-1/+8
| | | | genCodeInfoTable: put tag value into srt_len field for constr info tables.
* [project @ 2000-01-25 14:57:53 by panne]panne2000-01-251-1/+1
| | | | "installing" is now called "building"
* [project @ 2000-01-25 14:40:32 by sewardj]sewardj2000-01-251-1/+4
| | | | | x86: free up all FP regs before doing a ccall. This appears to be a part of the x86 calling convention(s).
* [project @ 2000-01-25 14:39:14 by panne]panne2000-01-251-1/+35
| | | | | Added a bunch of #defines for {SIZEOF,ALIGNMENT}_{INT,WORD}{8,16,32,64}. All this is a real hack: The include files need a more thorough restructuring.
* [project @ 2000-01-25 14:36:53 by panne]panne2000-01-251-2/+3
| | | | Added note about necessary synching with MachDeps.h and fixed a small typo
* [project @ 2000-01-25 14:34:07 by panne]panne2000-01-252-26/+78
| | | | Added more SIZEOF/ALIGNMENT tests