summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Typechecking for "foreign import prim"Duncan Coutts2009-06-092-0/+45
| | | | | | | | | | | | The main restriction is that all args and results must be unboxed types. In particular we allow unboxed tuple results (which is a primary motivation for the whole feature). The normal rules apply about "void rep" result types like State#. We only allow "prim" calling convention for import, not export. The other forms of import, "dynamic", "wrapper" and data label are banned as a conseqence of checking that the imported name is a valid C string. We currently require prim imports to be marked unsafe, though this is essentially arbitrary as the safety information is unused.
* Lexing and parsing for "foreign import prim"Duncan Coutts2009-06-093-1/+12
| | | | | We only allow simple function label imports, not the normal complicated business with "wrapper" "dynamic" or data label "&var" imports.
* Add new FFI calling convention "prim"Duncan Coutts2009-06-091-2/+6
| | | | | First in a series of patches to add the feature. This patch just adds PrimCallConv to the CCallConv type.
* The IO type has moved to GHC.Types in ghc-primIan Lynagh2009-06-201-2/+2
|
* Fix the way in the +RTS --info outputIan Lynagh2009-06-201-1/+2
|
* Set DELETE_ON_ERROR in ghc.mkIan Lynagh2009-06-171-0/+2
|
* Fix the ghci wrapperIan Lynagh2009-06-161-1/+1
| | | | The ${1+"$@"} was being evaluated by make, rather than being escaped.
* Fix #3132: a case of bogus code generationSimon Marlow2009-06-181-2/+28
|
* Fix #3279, #3288: fix crash encountered when calling unblock inside ↵Simon Marlow2009-06-161-8/+35
| | | | | | unsafePerformIO See comments for details
* drop packedstring; it is no longer required by template-haskellSimon Marlow2009-05-182-2/+0
|
* suggest "cd <dir>; make help"Simon Marlow2009-06-161-8/+2
|
* Add support for 'make help' in subdirectoriesSimon Marlow2009-06-164-1/+36
| | | | Including help for directory-specific targets, such as 'make 1' in ghc
* mention 'make {html,ps,pdf}'Simon Marlow2009-06-162-0/+35
|
* eliminate "warning: overriding commnds..." from make when we're cleaningSimon Marlow2009-06-162-1/+4
|
* Add 'make help', displaying a list of useful make targetsSimon Marlow2009-06-152-1/+61
|
* Add 'make fast' which omits deps (for a library) and some of the phasesSimon Marlow2009-06-151-1/+5
|
* add the missing final row of dashes in the success messageSimon Marlow2009-06-151-0/+3
|
* 'make 1' in libraries builds just the stage1 libsSimon Marlow2009-06-151-0/+4
| | | | i.e. not dph, and hence not stage2
* add 'make stage1_libs', to make just the stage 1 libsSimon Marlow2009-06-151-0/+4
| | | | i.e. not dph, and hence not the stage 2 compiler.
* copyFileWithHeader: use binary HandlesSimon Marlow2009-06-151-6/+7
| | | | Fixes failure when Haddocking Data.Monoid in libraries/base
* Include runghc and unlit in bindistsIan Lynagh2009-06-132-5/+1
|
* Improve bindist testingIan Lynagh2009-06-132-0/+5
| | | | We now also test runghc and unlit
* Remove the haskeline-specific hacks from ghc-cabalIan Lynagh2009-06-121-81/+1
| | | | | | Now that base does -liconv when it is necessary, it is no longer necessary for haskeline to do it as well, as haskeline depends on base. Thus we don't need the haskeline-specific hacks in ghc-cabal any more.
* Remove library buildinfo files when cleaningIan Lynagh2009-06-121-0/+1
|
* Update symbol names; fixes the build on OSXIan Lynagh2009-06-121-8/+8
|
* don't check for stack underflow if we just had an overflowSimon Marlow2009-06-101-1/+3
|
* pprExpr: don't add extra parens around [a..b] in an argument positionSimon Marlow2009-06-081-0/+2
| | | | test is tcfail205
* Changes for the new IO library, mainly base-package modules moving aroundSimon Marlow2009-05-2915-30/+95
|
* Fix the compiler-hs-dependency'sIan Lynagh2009-06-121-7/+7
| | | | | | We needed some more $s to delay evaluation until the values are available, and the calls needed to be later in the ghc.mk so that compiler_stage2_WAYS etc are defined.
* Doc building is now controlled by sensible variablesIan Lynagh2009-06-111-4/+0
|
* HC bootstrapping now worksIan Lynagh2009-06-111-1/+0
|
* bindists are now doneIan Lynagh2009-06-111-1/+0
|
* Add some $s to rules/build-package.mk for consistencyIan Lynagh2009-06-111-2/+2
|
* Deprecate the threadsafe kind of foreign importDuncan Coutts2009-06-114-15/+26
|
* Remove __encodeDouble and __encodeFloat from the rtsDuncan Coutts2009-06-112-46/+0
| | | | They now live in the integer-gmp package.
* Add recently added lib dirs to the darcs boring fileDuncan Coutts2009-06-111-0/+5
|
* Fix the flag used to force linking when we are making a shared libraryDuncan Coutts2009-06-041-1/+1
| | | | | | | This is a correction to the patch: * When linking a shared library with --make, always do the link step which used the wrong flag in making the decision. It used -dynamic whereas the correct flag is -shared.
* Check we're not using stdcall in foreign export on unsupported platformsDuncan Coutts2009-06-081-2/+3
| | | | It's already checked for foreign import, but was missing for export.
* Remove the various mp registers from the StgRegTableDuncan Coutts2009-06-102-20/+0
| | | | No longer need them as temp vars in the cmm primop implementations.
* Convert the gmp cmm primops to use local stack allocationDuncan Coutts2009-06-101-59/+56
| | | | | | Using global temp vars is really ugly and in the threaded case it needs slots in the StgRegTable. It'd also be pretty silly once we move the cmm primops out of the rts, into the integer-gmp package.
* Make killThread# cmm primop use local stack allocationDuncan Coutts2009-06-101-2/+3
| | | | | | | It using the mp_tmp_w register/global as a convenient temporary variable. This is naughty because those vars are supposed to be for gmp. Also, we want to remove the gmp temp vars so we must now use a local stack slot instead.
* Make Windows bindists and installers work in the new build systemIan Lynagh2009-06-105-10/+29
|
* Change GHC_OPTIONS to OPTIONS_GHCIan Lynagh2009-06-102-2/+2
|
* Define _BSD_SOURCE in Stg.hIan Lynagh2009-06-091-0/+4
| | | | | This means that, on Linux, we get functions like gamma defined when we #include math.h
* Put "%expect 0" directives in the .y filesIan Lynagh2009-06-087-0/+10
| | | | | With the exception of GHC's main Parser.y(.pp), which has 2 reduce/reduce conflicts
* Update to libffi 3.0.8; fixes trac #3119Ian Lynagh2009-06-056-2586/+74203
|
* Fix the libffi MakefileIan Lynagh2009-06-051-1/+1
|
* Add a README saying where libffi tarballs come fromIan Lynagh2009-06-051-0/+3
|
* ghc-pkg now takes a verbosity argumentIan Lynagh2009-06-051-23/+47
|
* Follow Cabal changesIan Lynagh2009-06-051-5/+6
|