- 25 May, 2001 14 commits
-
-
sof authored
wibble - drop a ? from a fprintf format string to avoid having it look like a trigraph seq might be present
-
dsyme authored
Minor tweaks to IlxGen backend
-
simonmar authored
Check for re_search_2() when checking whether libc has GNU regex. This is a temporary fix until we get rid of GNU regex altogether and do something more portable. *** MAYBE MERGE ***
-
simonmar authored
NetBSD is ELF only now. *** MAYBE MERGE (and the last revision) ***
-
simonmar authored
we're only supporting NetBSD/ELF now, not a.out (Lennart's suggestion)
-
simonpj authored
wibble
-
simonmar authored
Add -lm to HC_BOOT_LIBS *** MAYBE MERGE ***
-
simonmar authored
Link with HStext_cbits in case we need regex (bug from Lennart). *** MAYBE MERGE ***
-
simonmar authored
netbsd_aout => netbsdaout
-
simonmar authored
NetBSD <= 1.4 is a.out, apparently
-
simonmar authored
NetBSD is ELF by default.
-
simonpj authored
------------------------------------- Wibbles to Don's runtime-types commit ------------------------------------- There was an upside down predicate which utterly broke the compiler. While I was about it * I changed the global flag to opt_RuntimeTypes with command line option -fruntime-types (was -fkeep-stg-types) * I moved isRuntimeArg, isRuntimeVar to CoreSyn
-
sof authored
Conditionally descend into touchy/
-
sof authored
'touch' replacement (for use under Win32 in a cygwin-free setup only)
-
- 24 May, 2001 7 commits
-
-
dsyme authored
Various changes for ILX backend and type-passing compilers, code reviewed by SimonPJ
-
simonpj authored
wibble
-
simonpj authored
------------------------------------------------------ More stuff towards generalising 'foreign' declarations ------------------------------------------------------ This is the second step towards generalising 'foreign' declarations to handle langauges other than C. Now I can handle foreign import dotnet type T foreign import dotnet "void Foo.Baz.f( T )" f :: T -> IO () ** WARNING ** I believe that all the foreign stuff for C should work exactly as before, but I have not tested it thoroughly. Sven, Manuel, Marcin: please give it a whirl and compare old with new output. Lots of fiddling around with data types. The main changes are * HsDecls.lhs The ForeignDecl type and its friends Note also the ForeignType constructor to TyClDecl * ForeignCall.lhs Here's where the stuff that survives right through compilation lives * TcForeign.lhs DsForeign.lhs Substantial changes driven by the new data types * Parser.y ParseIface.y RnSource Just what you'd expect
-
simonpj authored
Tiny delta towards .NET
-
simonmar authored
Fixes for the hsc2hs rules.
-
simonmar authored
Make hGetContents work on DuplexHandles, and some small cleanups.
-
simonpj authored
Import assertPanic to support the ASSERT
-
- 23 May, 2001 6 commits
-
-
sewardj authored
Add {-# OPTION -fvia-C #-} so that the compiler can compile itself in --make mode (yes, really!)
-
sewardj authored
-lreadline --> readline
-
simonmar authored
- hack to make getArgs return [] and getProgName return "<interactive>" under GHCi. - use IO.stdout and IO.stderr instead of PrelHandle for the automatic flushing.
-
simonmar authored
Don't catch ExitException at the top level, just re-throw it.
-
rrt authored
Add -mwin32 -mno-cygwin to CPPFLAGS on Windows.
-
simonmar authored
Guess I forgot to commit this file as part of the exitWith changes yesterday. Anyway, commit my version now (no functional changes).
-
- 22 May, 2001 13 commits
-
-
sof authored
wibble
-
qrczak authored
Remove module dependency loop: don't import PrelIOBase in PrelRead. readIO is in PrelIO, remove it from PrelRead. Derive instance Read BufferMode automatically.
-
sof authored
Added the -h (header) option; it prefixes the unlit'ed output with a pair of line pragmas, e.g., foo$ unlit -h foo.lhs foo.lhs - | head -3 # 1 "foo.lhs" {-# LINE 1 "foo.lhs" #-} module Foo where foo$ Using -h saves the main user of 'unlit', GHC, from having to do the prepending of line pragmas via shellular magic. (=> GHC is able to drop the dependency on there being a UNIX-like shell underneath when using System.system).
-
qrczak authored
Fix small callconv-related import mismatches etc.
-
simonmar authored
front panel wibble.
-
simonmar authored
- System.exitWith now raises a (new) exception, ExitException ExitCode. - While I was there I cleaned up System.getArgs and System.getProgName, using foriegn label and removing progargs.c
-
simonmar authored
Need to make ghc/utils in the second stage before we clean in ghc/lib/std, because hsc2hs is needed to boot ghc/lib/std, but the libraries are needed to build hsc2hs itself. *** MERGE ***
-
rrt authored
Merge from 4.08 branch.
-
simonpj authored
------------------------------------------- Towards generalising 'foreign' declarations ------------------------------------------- This is a first step towards generalising 'foreign' declarations to handle langauges other than C. Quite a lot of files are touched, but nothing has really changed. Everything should work exactly as before. But please be on your guard for ccall-related bugs. Main things Basic data types: ForeignCall.lhs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Remove absCSyn/CallConv.lhs * Add prelude/ForeignCall.lhs. This defines the ForeignCall type and its variants * Define ForeignCall.Safety to say whether a call is unsafe or not (was just a boolean). Lots of consequential chuffing. * Remove all CCall stuff from PrimOp, and put it in ForeignCall Take CCallOp out of the PrimOp type (where it was always a glitch) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Add IdInfo.FCallId variant to the type IdInfo.GlobalIdDetails, along with predicates Id.isFCallId, Id.isFCallId_maybe * Add StgSyn.StgOp, to sum PrimOp with FCallOp, because it *is* useful to sum them together in Stg and AbsC land. If nothing else, it minimises changes. Also generally rename "CCall" stuff to "FCall" where it's generic to all foreign calls.
-
simonmar authored
Clarify what NON_POSIX_SOURCE is needed for (S_ISSOCK namely). This module is probably badly named. Anyway, things will likely change in this area shortly when the Win32 port happens.
-
rrt authored
Add changes for latest 4.08.2 InstallShield; merge into 4.08 branch, especially as the HEAD story will soon change with the New Improved Windows System for GHC 5.
-
rrt authored
Update for the latest 4.08.2 InstallShield. This will also be merged into the 4.08 branch, and will change again shortly (for the better) with the New Scheme that GHC 5 for Windows will use.
-
simonmar authored
Add -L$(FPTOOLS_TOP_ABS)/ghc/rts/gmp to the link flags (noticed by: Lennart).
-