- 16 Jul, 2001 8 commits
-
-
simonpj authored
Tidy up Type/TcType stuff in DsCCall/DsForeign
-
rrt authored
Set -DDLLized when DLLized is true for use in C source
-
rrt authored
Add stubs for ILXized cbits DLL. Don't call resetNonBlockingFd when DLLized; this stops the cbits DLL depending on the RTS, which ILX needs; it doesn't matter for Windows, as that doesn't have non-blocking IO implemented anyway.
-
rrt authored
Fix DLL building, and add support for linking .hsc.o files into cbits libraries
-
qrczak authored
s/extra-bin/bin/ because this is where all programs are installed to. Perhaps it should be changed the other way around - I don't know what this extra-bin was supposed to be.
-
qrczak authored
Fix paths in installed hsc2hs driver.
-
sof authored
hscStmt: track changes made to the TC entry points typecheckExpr, typecheckStmt
-
sof authored
eqForeignPtr: implement equality using new primitive
-
- 14 Jul, 2001 1 commit
-
-
sof authored
Heal HEID - eqForeignObjZh in include/PrimOps.h didn't have quite the right shape (the result is a macro arg). hslibs/lang/ForeignObj wasn't up on the change to eqForeignObj now being a primop. - recent ghc/compiler/deSugar/ changes broke the handling of CCall & FFI decls quite a bit. Backed out most the rewrites of Type.splitFoo to TcType.tcSplitFoo (i.e., now back to using TcType.tcSplitFoo). The backed-out newtype-related changes were by no means accidental. But, I don't profess to understand their intention to make the proper fix, so my change is just a stop-gap measure to get HEAD back to the land of the living. - recent changes to the behaviour of 'hiding' & qualified names broke hslibs/lang/CString hslibs/data/edison/Seq/ListSeq, hslibs/data/edison/Coll/TestOrdBag, hslibs/data/edison/Coll/UnbalancedSet, hslibs/data/edison/Coll/TestOrdSet, hslibs/data/edison/Seq/TestSeq - rename 64-bit 'primop' funs that now live in lib/std/cbits/longlong.c back to what they used to be called (i.e., prefixed with "stg_"). Why? - less likely they'll clash with other (user supplied) entry points at link-time. - matches protos in ghc/includes/PrimOp.h
-
- 13 Jul, 2001 14 commits
-
-
simonmar authored
add warning about not changing WhatGccIsCalled from build.mk.
-
simonmar authored
remove superfluous "return ()"
-
simonmar authored
error msg wibble
-
simonmar authored
check TMPDIR (got lost somewhere in the conversion to SysTools)
-
rrt authored
Don't build RTS for ILX
-
rrt authored
Improve comment
-
rrt authored
Function stubs for ILX
-
rrt authored
Add StgPrimFloat.c for ILX
-
simonpj authored
------------------------------------ Tidy up the "syntax rebinding" story ------------------------------------ I found a bug in the code that dealt with re-binding implicit numerical syntax: literals (fromInteger/fromRational) negation (negate) n+k patterns (minus) This is triggered by the -fno-implicit-prelude flag, and it used to be handled via the PrelNames.SyntaxMap. But I found a nicer way to do it that involves much less code, and doesn't have the bug. The explanation is with RnEnv.lookupSyntaxName
-
rrt authored
Need to add -Icbits even for ILX
-
rrt authored
Don't use relative #include paths, as these files will be compiled from inside cbits (they're now linked into the cbits library). All paths on which include files may be found must now be given with -I directives.
-
rrt authored
Make eqForeignObj a primop; N.B. Not implemented for the NCG
-
rrt authored
Explain why errno is imported via a function
-
rrt authored
Move 64-bit arithmetic support into std_cbits; there's no reason for it to be in the RTS.
-
- 12 Jul, 2001 9 commits
-
-
sof authored
ppFilesFromSummaries: to cope with recent driver changes, only report a file as being preprocessed if it differs from the source file(name). Fixes awfully bad breakage when using --make (source files were being deleted).
-
simonpj authored
Remove DsHsSyn; really part of my previous commit
-
simonpj authored
-------------------------------------------- Fix another bug in the squash-newtypes story. -------------------------------------------- [This one was spotted by Marcin, and is now enshrined in test tc130.] The desugarer straddles the boundary between the type checker and Core, so it sometimes needs to look through newtypes/implicit parameters and sometimes not. This is really a bit painful, but I can't think of a better way to do it. The only simple way to fix things was to pass a bit more type information in the HsExpr type, from the type checker to the desugarer. That led to the non-local changes you can see. On the way I fixed one other thing. In various HsSyn constructors there is a Type that is bogus (bottom) before the type checker, and filled in with a real type by the type checker. In one place it was a (Maybe Type) which was Nothing before, and (Just ty) afterwards. I've defined a type synonym HsTypes.PostTcType for this, and a named bottom value HsTypes.placeHolderType to use when you want the bottom value.
-
simonpj authored
Fix the module import story to match what the Revised Haskell Report says 1. Don't import qualified names of things that aren't imported 2. Fix a bug that meant import A hiding( D ) where D is a data constructor, didn't work. [The fix is to use IEVar not IEThingAbs in the want_hiding case of get_item in RnNames.filterImports
-
rrt authored
Rewire so that hsc.c files get built as part of cbits library.
-
rrt authored
Fix spacing
-
rrt authored
Two fixes: 1. Don't emit "native" any more. 2. Add import of mscorlib to the start of every output file.
-
rrt authored
Change access to errorHdrHook back into a foreign label (this is now supported by the NCG, or should be, and in any case, we don't build HSstd with the NCG).
-
rrt authored
Remove addrOf_ErrorHdrHook, as the NCG now can (or should) cope with foreign labels, and in any case, we don't use the NCG to build the standard library. The motivation for this fix is preventing HSstd_cbits depending on the RTS, so that it can be built as a DLL (for .NET) without needing to get the RTS built as a DLL (that way lies madness).
-
- 11 Jul, 2001 8 commits
-
-
sof authored
Append final newline to _stub.{c,h} output
-
sof authored
Prev commit which tried to get rid of the 'ineffective CPP' stage broke an invariant/assumption made by DriverPipeline.genPipeline, I'm afraid. The invariant being that from the input filename to a compilation pipeline, the start stage/phase can be uniquely determined (via DriverPhases.startPhase). run_phase no longer guarantees this, its result filename may now be equal to the input filename. [This resulted in -M not working properly when -cpp wasn't also used]. Patch this up by having the input filename to a compilation pipeline stage be tagged with the assumed suffix of the output. This is really just papering over the cracks, the proper way to tidy this up is to avoid having to do the two-stage compilation pipeline in Main.main.compileFile, i.e., reconsider how OPTIONS pragmas are handled. I decided not to try to do this now for fear of destabilising HEAD even further.
-
sof authored
runSomething: don't export it
-
sof authored
run_phase: added tysig
-
rrt authored
Replace GhcLibToolsHcOpts with FptoolsHcOpts, and make it apply to all programs in fptools, not just the hslibs tools. Now there's a way of controlling compiler flags to all programs in the tree, so a) by default all utilities should be optimised (before this was only done for one or two like hsc2hs) b) if you're doing development work, you can get everything built quicker by setting FptoolsHcOpts appropriately
-
rrt authored
Don't add -O here; should be up to the user
-
rrt authored
Make ghc-pkg find its path on Windows
-
rrt authored
Fix spacing bogon.
-