- 13 Jan, 2012 1 commit
-
-
dterei authored
-
- 19 Dec, 2011 2 commits
-
-
Ian Lynagh authored
We no longer have many separate, clashing getDynFlags functions I've given each GhcMonad its own HasDynFlags instance, rather than using UndecidableInstances to make a GhcMonad m => HasDynFlags m instance.
-
Ian Lynagh authored
We now require GHC >= 7.0, which has the behaviour we want.
-
- 25 Nov, 2011 1 commit
-
-
Ian Lynagh authored
Based on a patch from Arnaud Degroote <degroote@NetBSD.org> in trac #5480.
-
- 24 Nov, 2011 1 commit
-
-
Simon Marlow authored
-
- 22 Nov, 2011 6 commits
- 21 Nov, 2011 1 commit
-
-
dterei authored
LLVM doesn't support the OS X system assembler anymore so we must use their assembler through clang. Also improved error messages when various LLVM tools can't be run.
-
- 18 Nov, 2011 1 commit
-
-
Simon Marlow authored
Currently it is appearing on stderr, whereas the rest of the messages from --make go to stdout, this change fixes that.
-
- 16 Nov, 2011 3 commits
-
-
Simon Marlow authored
-
Simon Marlow authored
-
Simon Marlow authored
Rather than have main() be statically compiled as part of the RTS, we now generate it into the tiny C file that we compile when linking a binary. The main motivation is that we want to pass the settings for the -rtsotps and -with-rtsopts flags into the RTS, rather than relying on fragile linking semantics to override the defaults, which don't work with DLLs on Windows (#5373). In order to do this, we need to extend the API for initialising the RTS, so now we have: void hs_init_ghc (int *argc, char **argv[], // program arguments RtsConfig rts_config); // RTS configuration hs_init_ghc() can optionally be used instead of hs_init(), and allows passing in configuration options for the RTS. RtsConfig is a struct, which currently has two fields: typedef struct { RtsOptsEnabledEnum rts_opts_enabled; const char *rts_opts; } RtsConfig; but might have more in the future. There is a default value for the struct, defaultRtsConfig, the idea being that you start with this and override individual fields as necessary. In fact, main() was in a separate static library, libHSrtsmain.a. That's now gone.
-
- 11 Nov, 2011 1 commit
-
-
Simon Marlow authored
-
- 20 Oct, 2011 1 commit
-
-
Ian Lynagh authored
-
- 19 Oct, 2011 1 commit
-
-
Thorkil Naur authored
-
- 13 Oct, 2011 1 commit
-
-
Simon Marlow authored
-
- 11 Oct, 2011 1 commit
-
-
Ian Lynagh authored
Now that we always link in an extra object, we may as well always define rtsOptsEnabled in it, rather than having a default value in rts/hooks/RtsOptsEnabled.c.
-
- 06 Oct, 2011 2 commits
-
-
Ian Lynagh authored
Without it we get warnings like: ld: warning: could not create compact unwind for .LFB3: non-standard register 5 being saved in prolog
-
Ian Lynagh authored
ld gives loads of warnings like: ld: warning: text reloc in _base_GHCziArr_unsafeArray_info to _base_GHCziArr_unsafeArray_closure when linking any program. We're not sure whether this is something we ought to fix, but for now we use the -Wl,-read_only_relocs,suppress flag to silence them.
-
- 21 Aug, 2011 1 commit
-
-
kgardas authored
-
- 10 Aug, 2011 2 commits
-
-
Simon Marlow authored
that it wasn't working on Alpha, because we had explicitly listed the arches rather than having a sensible fallback).
-
Simon Marlow authored
Also refactor the check into one place.
-
- 06 Aug, 2011 1 commit
-
-
- 03 Aug, 2011 1 commit
-
-
Ian Lynagh authored
Now that the in-tree gmp has been upgraded, it should no longer be necessary, according to #5293.
-
- 27 Jul, 2011 1 commit
-
-
chak@cse.unsw.edu.au. authored
- "-Wl,-no_pie" can be removed once GMP gets updated
-
- 20 Jul, 2011 1 commit
-
-
Simon Marlow authored
being used. We now track whether a module used any TH splices in the ModIface (and at compile time in the TcGblEnv and ModGuts). If a module used TH splices last time it was compiled, then we ignore the results of the normal recompilation check and recompile anyway, *unless* the module is "stable" - that is, none of its dependencies (direct or indirect) have changed. The stability test is pretty important - otherwise ghc --make would always recompile TH modules even if nothing at all had changed, but it does require some extra plumbing to get this information from GhcMake into HscMain. test in driver/recomp009
-
- 15 Jul, 2011 2 commits
-
-
Ian Lynagh authored
-
Sergei Trofimovich authored
"inplace/bin/ghc-stage1" -H32m -O -package-name base-4.4.0.0 -hide-all-packages -i -ilibraries/base/. -ilibraries/base/dist-install/build -ilibraries/base/dist-install/build/autogen -Ilibraries/base/dist-install/build -Ilibraries/base/dist-install/build/autogen -Ilibraries/base/include -optP-DOPTIMISE_INTEGER_GCD_LCM -optP-include -optPlibraries/base/dist-install/build/autogen/cabal_macros.h -package ghc-prim-0.2.0.0 -package integer-gmp-0.3.0.0 -package rts-1.0 -split-objs -package-name base -XHaskell98 -XCPP -O2 -no-user-package-conf -rtsopts -odir libraries/base/dist-install/build -hidir libraries/base/dist-install/build -stubdir libraries/base/dist-install/build -hisuf hi -osuf o -hcsuf hc -c libraries/base/./GHC/Int.hs -o libraries/base/dist-install/build/GHC/Int.o /usr/lib/gcc/sparc-unknown-linux-gnu/4.5.2/../../../../sparc-unknown-linux-gnu/bin/ld: --relax and -r may not be used together collect2: ld returned 1 exit status make[1]: *** [libraries/base/dist-install/build/GHC/Int.o] Error 1 Or with '-v' param: /usr/bin/gcc -fno-stack-protector -nostdlib -nodefaultlibs -Wl,-r -Wl,--build-id=none -Wl,-x -o libraries/base/dist-install/build/GHC/Int.o /tmp/ghc45126_0/ghc45126_0.ldscript /usr/lib/gcc/sparc-unknown-linux-gnu/4.5.2/../../../../sparc-unknown-linux-gnu/bin/ld: --relax and -r may not be used together On SPARC gcc-4.5.2 has -mrelax in it's default specs, so we explicitly pass --no-relax for ld to make sure gcc's default does not affect us. Signed-off-by:
Sergei Trofimovich <slyfox@gentoo.org>
-
- 01 Jul, 2011 1 commit
-
-
Ian Lynagh authored
-
- 30 Jun, 2011 1 commit
-
-
batterseapower authored
-
- 27 Jun, 2011 1 commit
-
- 18 Jun, 2011 2 commits
-
-
dterei authored
While we previously checked the safety of safe imported modules we didn't do this check transitively. This can be a problem when we depend on a trustworthy module in a package that is no longer trusted, so we should fail compilation. We already stored in an interface file the transitive list of packages a module depends on. Now we extend that list to include a flag saying if we depend on that package being trusted as well.
-
dterei authored
This patch disables the use of some GHC extensions in Safe mode and also the use of certain flags. Some are disabled completely while others are only allowed on the command line and not in source PRAGMAS. We also check that Safe imports are indeed importing a Safe or Trustworthy module.
-
- 31 May, 2011 1 commit
-
-
dterei authored
-
- 08 May, 2011 1 commit
-
-
Ian Lynagh authored
And remove cTargetOS/cTargetPlatform.
-
- 07 May, 2011 1 commit
-
-
Ian Lynagh authored
-