- 11 Jul, 2000 12 commits
-
-
simonmar authored
remove unused imports
-
simonmar authored
remove unused imports
-
simonmar authored
remove unused imports; misc cleanup
-
simonmar authored
remove unused imports; misc cleanup
-
simonmar authored
remove unused imports
-
simonmar authored
use MachLabel rather than MachLitLit for compiling foreign label and foreign export dynamic.
-
simonmar authored
fix typo
-
simonmar authored
undo what appears to be an accidental commit
-
sewardj authored
Fix up the sparc native code generator. Mostly dull stuff. Notable changes: * Cleaned up ccall mechanism for sparc somewhat. * Rearranged assignment of sparc floating point registers (includes/MachRegs.h) so the NCG's register allocator can handle the double-single pairing issue without modification. Split VirtualRegF into VirtualRegF and VirtualRegD, and split RcFloating into RcFloat and RcDouble. Net effect is that there are now three register classes -- int, float and double, and we pretend that sparc has some float and some double real regs. * (A fix for all platforms): propagate MachFloats through as StFloats, not StDoubles. Amazingly, until now literal floats had been converted to and treated as doubles, including in ccalls.
-
rrt authored
Test completed, file deleted.
-
simonmar authored
New autoconf tests for ghc version from Michael Weber, with minor modifications by me.
-
simonmar authored
workaround for strange gcc-ism: elide 'popl %edx' in the epilogue.
-
- 10 Jul, 2000 2 commits
- 09 Jul, 2000 3 commits
-
-
panne authored
Third attempt by two people trying to get a simple fprintf right again... :-}
-
panne authored
Install HsStd.h, stgio.h, stgerror.h, and fileObject.h, too. Hmmm, this looks not particularly nice, perhaps we should merge those into a single HsStd.h some day.
-
panne authored
By definition (sec. 7.3 in the H98 report), userError raises an IOError, so Prelude.catch should catch UserError exceptions, too. Apart from not conforming to the report, without this patch GHC's typechecker falls straight on its face.
-
- 08 Jul, 2000 5 commits
-
-
panne authored
Synched section on packages with new generalized package file format
-
panne authored
Generalized the package file format a little bit: include directories, include files, and options are now lists of Strings.
-
panne authored
After the last fix in PprAbs.ppr_amode, we now need a cast from StgClosure* to P_ in UPD_FRAME_UPDATEE. I'm not sure if this is the nicest way to fix this, CgCon.cgReturnDataCon is another candidate. It looks a little bit like PrimRep distinguishes not enough between the different kind of pointers (there's no alternative for L_).
-
panne authored
Fixed Show instance for Exception
-
panne authored
Synch format string with actual args
-
- 07 Jul, 2000 7 commits
-
-
simonpj authored
This commit moves the instance environment out of the Class data structure, where it was immutable, to part of the type-checker environment. This change is absolutely essential as part of our move to GHCi, and I think it's also going to be necessary for Andrei's work on generic functions. As part of this change, we can remove a) types/InstEnv.* (thereby also removing a hi-boot loop) b) a tc-fixpoint-loop in TcModule Both of these are worthwhile simplifications.
-
simonpj authored
Improve comments
-
simonpj authored
Fix duplicate class assertion error msg
-
simonmar authored
Rearrange exception stuff, as per my message on glasgow-haskell-users recently. The main change is the IOError type is now a synonym for Exception. IO.ioError can therefore be used for throwing exceptions. IO.catch still catches only IO exceptions, for backwards compatibility. The interface exported by Exception has changed somewhat: try :: IO a -> IO (Either Exception a) tryJust :: (Exception -> Maybe b) -> a -> IO (Either b a) catch :: IO a -> (Exception -> IO a) -> IO a catchJust :: (Exception -> Maybe b) -> IO a -> (b -> IO a) -> IO a ioErrors :: Exception -> Maybe IOError arithExceptions :: Exception -> Maybe ArithException errorCalls :: Exception -> Maybe String dynExceptions :: Exception -> Maybe Dynamic assertions :: Exception -> Maybe String asyncExceptions :: Exception -> Maybe AsyncException raiseInThread is now called throwTo. Where possible, the old functions have been left around, but marked deprecated.
-
simonmar authored
Remove the cast from CMacroExprs - it doesn't appear to be needed. This fixes the recently introduced bug when compiling CCS_HDR macros in profiling code.
-
simonmar authored
fix -keep-hc-file-too
-
simonmar authored
revert rev. 1.81
-
- 06 Jul, 2000 11 commits
-
-
panne authored
Typo
-
keithw authored
Fix obvious typo (pprStgARg for pprStgArg). Clearly not a frequently- tickled part of the compiler!
-
simonpj authored
* Improve the warning "M is imported but nothing from it is used" In particular, don't warn if some instances from it are imported. It's pretty much impossible to do the Right Thing always. A comment in Rename.lhs says -- NOTE: Consider -- module This -- import M () -- -- The import M() is not *necessarily* redundant, even if -- we suck in no instance decls from M (e.g. it contains -- no instance decls, or This contains no code). It may be -- that we import M solely to ensure that M's orphan instance -- decls (or those in its imports) are visible to people who -- import This. Sigh. -- There's really no good way to detect this, so the error message -- in RnEnv.warnUnusedModules is weakened instead * Minor comment changes to RnIfaces.lhs * Use NameEnv instead of UFM in TcEnv (tidy up only)
-
simonmar authored
Add Marcin Kowalczyk and Michael Weber to the "Additional Contributors" section.
-
simonmar authored
A string constant block can consist of multiple .string/.ascii directives. The sparc-specific code in this file already handled this properly, but the x86 code was wrong.
-
simonmar authored
no need to set hsc_lang = HscC when -split-objs is on.
-
simonmar authored
New form of literal: MachLabel, for addresses of labels. Used by foreign label instead of MachLitLit now. Real lit-lits now cause the NCG to panic. Also: removed CLitLit from AbsCSyn; it was only used in one place for a purpose it shouldn't have been used for in the first place.
-
rrt authored
Corrected URLs.
-
simonmar authored
New section on Packages, collecting together the various package-related documentation and adding some new stuff about the package management features.
-
rrt authored
Bump the version no.
-
simonmar authored
ghc 4.06 didn't have -package, so use it only for 4.07+.
-