- 26 Mar, 2001 11 commits
-
-
simonmar authored
we have BinDistShScripts now
-
simonmar authored
remove unnecessary junk
-
simonmar authored
Move the -monly-n-regs flags into the Makefile, necessary for .hc bootstrapping.
-
simonmar authored
Moved into ghci subdirectory.
-
simonmar authored
Remove unused file.
-
simonmar authored
- make the pkgconf program independent of the location of the build tree - instead of Config.hs, we pass the configuration parameters in as options. This is necessary for .hc bootstrapping. - remove the ghci driver stuff, it moved to the ghci subdirectory. - remove ghc5.hs
-
simonmar authored
if the STOLEN_X86_REGS arg is missing, assume 4.
-
simonmar authored
mini-drivers for GHC 5 (ghci moved from ghc/driver to ghc/driver/ghci, ghc is new).
-
simonmar authored
oops, STABLE_NAME_info is stg_STABLE_NAME_info in the HEAD.
-
simonmar authored
StableNames weren't being initialized properly (the CCS field for profiling was left out).
-
simonmar authored
Simplify the foreign-export stub processing. - DynFlags now has fields for the stub.h and stub.c filenames, for consistency with the normal hsc output file name. - codeOutput puts the stubs into these files rather than dreaming up new temporary names for them - now we don't have to move the stubs into the right place in DriverPipeline. - we do however have to inject the correct #includes into the stub.c file when it is generated: I'm now injecting the same includes as the .hc file gets plus "RtsAPI.h", which is probably more correct than the hacky hardcoded "Stg.h" we had before.
-
- 25 Mar, 2001 5 commits
-
-
qrczak authored
Preprocessing hack made less ugly by moving 'tail' from usage to definition.
-
qrczak authored
Remove bogus comment.
-
simonmar authored
- include :undef in the :help message - don't read ./.ghci if it is the same file as $HOME/.ghci
-
panne authored
OK, here comes the third try to get a simple string from the Makefile into the Haskell sources in a "portable" way... Perhaps we should use compiler/main/Config.hs's technique here.
-
qrczak authored
Promote (//) from a function to IArray method with an inefficient default definition. This completely compatible change allows efficient implementations of (//) for particular types. Explicitly define efficient (//) for Array and UArray. Use unsafeFreeze* instead of freeze* in (//), accum and accumArray for Array and IArray. Remove showList in instance Show Array (the default definition does the job). Add Eq, Ord and Show instances for UArray. (Would be simpler if types in instance contexts were not required to be type variables. I didn't use -fallow-undecidable-instances but defined instances for individual element types separately.) Add unsafe{Freeze,Thaw}/{STArray,IOArray,IOUArray} rules. Fix thaw/IOUArray rule (nobody uses IOUArrays in the ST monad!).
-
- 24 Mar, 2001 3 commits
-
-
qrczak authored
Typo in 2147483648.
-
qrczak authored
Fix passing library dir to ghc-pkg.
-
simonmar authored
Turn CSE off when compiling main/DriverState for now. It interacts badly with our global variable hacks, commoning up several of them into single variables :-( We have a proposed fix for this, which is to make the NOINLINE pragma also mean "NO SHARING", but it isn't committed yet.
-
- 23 Mar, 2001 18 commits
-
-
simonmar authored
Add overlapping string pattern test.
-
simonmar authored
Fix the long-standing overlapping patterns bug with string-literal patterns.
-
simonmar authored
can't inject the stub.h include here, it's too late.
-
simonmar authored
don't forget to inject a #include for the stub.h file.
-
simonmar authored
Changes to support bootstrapping the compiler from .hc files. It's not quite working yet, but it's not far off. - the biggest change is that any injected #includes are now placed in the .hc file at generation time, rather than compilation time. I can't see any reason not to do this - it makes it clear by looking at the .hc file which files are being #included, it means one less temporary file at compilation time, and it means the .hc file is more standalone. - all the gruesomeness is in mk/bootstrap.mk, which handles building .hc files without a ghc driver.
-
simonmar authored
add ghc-pkg
-
simonmar authored
document :def and :undef
-
simonpj authored
Add comment
-
simonpj authored
Improve printing slightly
-
simonpj authored
Fix renamer error that prevented PrelBase compiling
-
rrt authored
Include config.h, not Stg.h
-
simonmar authored
Add test for :def, :undef
-
simonmar authored
make :def work again
-
simonmar authored
unused import
-
simonpj authored
Comments, plus dead code elim
-
simonpj authored
----------------------------------- Correct size calculations for INLINE notes ----------------------------------- Amazingly, CoreUnfold.size_up wasn't treating an InlineMe note as small. (InlineMe was only dealt with at top level.) As the comment now says: -- This can be important. If you have an instance decl like this: -- instance Foo a => Foo [a] where -- {-# INLINE op1, op2 #-} -- op1 = ... -- op2 = ... -- then we'll get a dfun which is a pair of two INLINE lambdas This fixes a problem Manuel encountered.
-
simonpj authored
----------------------------------- Remove a redundant test in WorkWrap ----------------------------------- We were making a worker/wrapper for an INLINE function when it wasn't necessary, and that's a Bad Idea. As the comment with WorkWrap.tryWW now says: -- It's very important to refrain from w/w-ing an INLINE function -- If we do so by mistake we transform -- f = __inline (\x -> E) -- into -- f = __inline (\x -> case x of (a,b) -> fw E) -- fw = \ab -> (__inline (\x -> E)) (a,b) -- and the original __inline now vanishes, so E is no longer -- inside its __inline wrapper. Death! Disaster! There was one case when we did w/w it (to do with coercions), but it turned out to be a vestige, as the OUT OF DATE NOTE says.
-
qrczak authored
hsc2hs lexical rules clarified.
-
- 22 Mar, 2001 3 commits