1. 19 Oct, 2011 4 commits
  2. 01 Oct, 2011 1 commit
    • Ian Lynagh's avatar
      Fix bindist finding gcc on OS X; fixes trac #5397 · 651cd996
      Ian Lynagh authored
      $TargetOS_CPP wasn't getting defined in a bindist, which meant the
      code to use gcc-4.2 instead of gcc on OS X wasn't working. Now fixed,
      by moving some of configure.ac's code into the shared aclocal.m4.
      651cd996
  3. 13 Sep, 2011 1 commit
  4. 06 Sep, 2011 1 commit
  5. 10 Aug, 2011 1 commit
  6. 02 Aug, 2011 4 commits
  7. 27 Jul, 2011 1 commit
  8. 01 Jul, 2011 1 commit
  9. 22 Jun, 2011 3 commits
  10. 01 Jun, 2011 1 commit
  11. 08 May, 2011 1 commit
  12. 05 May, 2011 1 commit
  13. 01 May, 2011 1 commit
  14. 29 Apr, 2011 1 commit
  15. 27 Apr, 2011 1 commit
  16. 23 Apr, 2011 3 commits
  17. 22 Apr, 2011 2 commits
  18. 21 Apr, 2011 1 commit
  19. 12 Apr, 2011 1 commit
    • Simon Marlow's avatar
      Change the way module initialisation is done (#3252, #4417) · a52ff761
      Simon Marlow authored
      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.
      a52ff761
  20. 08 Apr, 2011 1 commit
  21. 13 Mar, 2011 1 commit
  22. 07 Mar, 2011 1 commit
  23. 01 Mar, 2011 1 commit
    • Sergei Trofimovich's avatar
      configure: amend sanity check · e45b7db2
      Sergei Trofimovich authored
      As we perform some mangling of original --build/--host/--target
      params we should check the result of mangling against desired triplet,
      not originally passed by user.
      
      Patch also adds mangled triplets to the output.
      e45b7db2
  24. 25 Feb, 2011 1 commit
  25. 23 Feb, 2011 1 commit
  26. 11 Feb, 2011 1 commit
    • Ian Lynagh's avatar
      Fix platform detection in bindists · 650d6440
      Ian Lynagh authored
      In a bindist, we generate files like the hsc2hs wrapper.
      This means we need to have the right values for the variables like
      CONF_GCC_LINKER_OPTS_STAGE1 which in turn means we need to know what
      platform we're on.
      650d6440
  27. 10 Feb, 2011 1 commit
  28. 19 Jan, 2011 1 commit
  29. 24 Jan, 2011 1 commit