summaryrefslogtreecommitdiff
path: root/compiler/ghc.mk
Commit message (Collapse)AuthorAgeFilesLines
* remove $(GhcStage1DefaultNewCodegen) etc.Simon Marlow2012-09-051-12/+0
|
* Add "Unregisterised" as a field in the settings fileIan Lynagh2012-08-071-2/+0
| | | | | | To explicitly choose whether you want an unregisterised build you now need to use the "--enable-unregisterised"/"--disable-unregisterised" configure flags.
* More more ld-related settings into the settings fileIan Lynagh2012-08-051-6/+0
| | | | Related to #4862
* Remove LD_X; it's no longer usedIan Lynagh2012-08-051-2/+0
|
* Move linker flags into the settings file; fixes #4862Ian Lynagh2012-08-051-4/+0
| | | | They were getting baked into Config.hs before.
* Merge remote-tracking branch 'origin/master' into newcgSimon Marlow2012-07-041-10/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (756 commits) don't crash if argv[0] == NULL (#7037) -package P was loading all versions of P in GHCi (#7030) Add a Note, copying text from #2437 improve the --help docs a bit (#7008) Copy Data.HashTable's hashString into our Util module Build fix Build fixes Parse error: suggest brackets and indentation. Don't build the ghc DLL on Windows; works around trac #5987 On Windows, detect if DLLs have too many symbols; trac #5987 Add some more Integer rules; fixes #6111 Fix PA dfun construction with silent superclass args Add silent superclass parameters to the vectoriser Add silent superclass parameters (again) Mention Generic1 in the user's guide Make the GHC API a little more powerful. tweak llvm version warning message New version of the patch for #5461. Fix Word64ToInteger conversion rule. Implemented feature request on reconfigurable pretty-printing in GHCi (#5461) ... Conflicts: compiler/basicTypes/UniqSupply.lhs compiler/cmm/CmmBuildInfoTables.hs compiler/cmm/CmmLint.hs compiler/cmm/CmmOpt.hs compiler/cmm/CmmPipeline.hs compiler/cmm/CmmStackLayout.hs compiler/cmm/MkGraph.hs compiler/cmm/OldPprCmm.hs compiler/codeGen/CodeGen.lhs compiler/codeGen/StgCmm.hs compiler/codeGen/StgCmmBind.hs compiler/codeGen/StgCmmLayout.hs compiler/codeGen/StgCmmUtils.hs compiler/main/CodeOutput.lhs compiler/main/HscMain.hs compiler/nativeGen/AsmCodeGen.lhs compiler/simplStg/SimplStg.lhs
| * Build fixesIan Lynagh2012-06-291-0/+4
| |
| * Don't build the ghc DLL on Windows; works around trac #5987Ian Lynagh2012-06-291-0/+8
| | | | | | | | | | We also don't build DLLs for the dph-lifted-* packages as they depend on ghc.
| * Enable and fix building dynlibs on Win64Ian Lynagh2012-05-051-1/+1
| |
| * Follow libffi changes on WindowsIan Lynagh2012-05-041-1/+1
| |
| * Remove an unused make variableIan Lynagh2012-04-011-2/+0
| |
| * Fix building with devel snapshotsIan Lynagh2012-03-171-1/+2
| |
| * two typosGabor Greif2012-02-271-1/+1
| |
| * remove legacy cleanGabor Greif2012-02-271-4/+1
| |
* | Merge remote-tracking branch 'origin/master' into newcgSimon Marlow2012-02-131-8/+6
|\ \ | |/ | | | | | | | | | | | | Conflicts: compiler/cmm/CmmLint.hs compiler/cmm/OldCmm.hs compiler/codeGen/CgMonad.lhs compiler/main/CodeOutput.lhs
| * Remove a workaround for building with GHC 6.12.2Ian Lynagh2012-02-071-7/+0
| |
| * Improve support for cross-compilationSimon Marlow2012-01-301-0/+5
| | | | | | | | Patchset from Stephen Blackheath <stephen.blackheath@ipwnstudios.com>
| * RefactoringIan Lynagh2012-01-081-1/+1
| | | | | | | | | | This is working towards being able to put ghcautoconf.h and ghcplatform.h in includes/dist
* | SnapshotSimon Marlow2012-01-171-1/+1
|/
* Resurrect UseLibFFIForAdjustors from bitrot.PHO2011-12-081-1/+1
| | | | | | * Pass -Irts/dist/build to the C preprocessor to expose libffi headers (ffi.h and ffitarget.h) to foreign import wrappers during the building process of GHC itself. * Install libffi headers into $(ghcheaderdir) just like any other C headers. Otherwise an installed GHC can't find them when it wants to compile foreign import wrappers. * Include libffi headers in the bindist for the same reason.
* Remove unused cRelocatableBuildSimon Marlow2011-11-231-6/+0
|
* Improve the way we call "rm" in the build system; fixes trac #4916Ian Lynagh2011-11-191-3/+3
| | | | | | | | | | We avoid calling "rm -rf" with no file arguments; this fixes cleaning on Solaris, where that fails. We also check for suspicious arguments: anything containing "..", starting "/", or containing a "*" (you need to call $(wildcard ...) yourself now if you really want globbing). This should make things a little safer.
* GhcProfiled: don't automatically add -auto-allSimon Marlow2011-11-171-5/+14
|
* FIX BUILD on OS X 10.5: Check whether ld understands -no_compact_unwindThorkil Naur2011-10-191-0/+2
|
* Get Windows building dynlibs againIan Lynagh2011-10-181-2/+13
|
* Simplify the libffi buildIan Lynagh2011-10-141-1/+1
| | | | | | | We now put the libffi objects into the RTS library, rather than trying to mangle libffi into being a ghc package itself. It would be nicer to make it a separate library (but not a ghc package), but for now hopefully this will get the build going through on Windows again.
* Build fixes for OS X amd64 following libffi updateIan Lynagh2011-10-061-0/+2
|
* Improve the handling of Integer literalsIan Lynagh2011-09-171-0/+1
| | | | | | | | | LitInteger now carries around the id of mkInteger, which it uses to construct the core to build Integer literals. This way we don't have to build in info about lots of Ids. We also no longer have any special-casing for integer-simple, so there is less code involved.
* change how Integer's are handled in CoreIan Lynagh2011-09-131-0/+10
| | | | | | We now treat them as literals until CorePrep, when we finally convert them into the real Core representation. This makes it a lot simpler to implement built-in rules on them.
* Remove unused bindingsIan Lynagh2011-06-231-4/+0
|
* Move more commands into the settings fileIan Lynagh2011-06-221-2/+0
|
* Assign more accurate code sizes to primops, so that the inliningSimon Marlow2011-05-241-3/+3
| | | | | heuristics work better. Also removed the old unused "needs_wrapper" predicate for primops. This helps with #4978.
* Change remaining uses of cTargetOS to platformOSIan Lynagh2011-05-081-90/+0
| | | | And remove cTargetOS/cTargetPlatform.
* Remove the OMIT_NATIVE_CODEGEN ifdefIan Lynagh2011-05-011-6/+0
| | | | | | We now test cGhcWithNativeCodeGen == "YES" instead.
* Small DynFlags improvementsIan Lynagh2011-05-011-0/+52
|
* Add "C compiler flags" to settings fileIan Lynagh2011-04-291-2/+0
| | | | | | I've made cpp_args include gcc_args. It effectively didn't before, but seeing as gcc_args sometimes has -D flags in, I think doing so is the right thing to do.
* Move gcc's and perl's location to the settings fileIan Lynagh2011-04-221-4/+0
| | | | They were hardcoded in Config.hs
* Change the way module initialisation is done (#3252, #4417)Simon Marlow2011-04-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the code generator generated small code fragments labelled with __stginit_M for each module M, and these performed whatever initialisation was necessary for that module and recursively invoked the initialisation functions for imported modules. This appraoch had drawbacks: - FFI users had to call hs_add_root() to ensure the correct initialisation routines were called. This is a non-standard, and ugly, API. - unless we were using -split-objs, the __stginit dependencies would entail linking the whole transitive closure of modules imported, whether they were actually used or not. In an extreme case (#4387, #4417), a module from GHC might be imported for use in Template Haskell or an annotation, and that would force the whole of GHC to be needlessly linked into the final executable. So now instead we do our initialisation with C functions marked with __attribute__((constructor)), which are automatically invoked at program startup time (or DSO load-time). The C initialisers are emitted into the stub.c file. This means that every time we compile with -prof or -hpc, we now get a stub file, but thanks to #3687 that is now invisible to the user. There are some refactorings in the RTS (particularly for HPC) to handle the fact that initialisers now get run earlier than they did before. The __stginit symbols are still generated, and the hs_add_root() function still exists (but does nothing), for backwards compatibility.
* Flag for defaulting the codegen GhcStageXDefaultNewCodegen.Edward Z. Yang2011-04-111-0/+12
| | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
* Remove dead code, now that -fvia-c is a no-opIan Lynagh2011-04-041-4/+0
|
* Clarify the "object splitting" variable namesIan Lynagh2011-02-191-2/+2
|
* Keep separate linker flags, for when we want to link with gcc or ldIan Lynagh2011-01-241-2/+4
|
* Build system improvementsIan Lynagh2011-01-151-1/+3
| | | | | | | | | We no longer use dummy-ghc; instead we don't configure most packages until the stage1 compiler is available. We also now use Cabal for building the ghc-bin package. There are a couple more sanity checks too.
* Define cTargetArch and start to use it rather than ifdefsIan Lynagh2011-01-041-0/+38
| | | | | | | | Using Haskell conditionals means the compiler sees all the code, so there should be less rot of code specific to uncommon arches. Code for other platforms should still be optimised away, although if we want to support targetting other arches then we'll need to compile it for-real anyway.
* Rename the c*Platform variables to c*PlatformStringIan Lynagh2011-01-041-6/+6
|
* Drop GhcWithLlvmCodeGen configuration bitsMatthias Kilian2010-12-191-2/+0
| | | | | | The LLVM code generator is always built unconditionally, so both the configuration variable in mk/config.mk.in as well as the string in compilerInfo can be removed.
* Remove dead code now that we require the bootstrapping compiler be >= 6.12Ian Lynagh2010-12-141-22/+0
|
* Always enable the archive-loading codeIan Lynagh2010-11-271-11/+13
| | | | If the GHCi .o lib doesn't exist, load the .a instead
* Fixes for when HADDOCK_DOCS=NOIan Lynagh2010-09-211-1/+6
|
* Implement archive loading for ghciIan Lynagh2010-09-201-0/+6
|