1. 07 Jan, 2012 1 commit
  2. 04 Jan, 2012 2 commits
  3. 08 Dec, 2011 1 commit
  4. 27 Nov, 2011 2 commits
  5. 25 Nov, 2011 1 commit
    • Ian Lynagh's avatar
      Fixes for NetBSD · 498467cf
      Ian Lynagh authored
      Based on a patch from Arnaud Degroote <degroote@NetBSD.org> in
      trac #5480.
  6. 02 Nov, 2011 1 commit
  7. 19 Oct, 2011 5 commits
  8. 07 Oct, 2011 1 commit
    • dmp's avatar
      Add autoconf support to detect an LLVM-based C compiler · 6247b59e
      dmp authored
      This patch adds support to the autoconf scripts to detect
      when we are using a C compiler that uses an LLVM back end.
      An LLVM back end does not support all of the extensions use
      by GCC, so we need to perform some conditional compilation
      in the runtime, particularly for handling thread local
      storage and global register variables.
      The changes here will set the CC_LLVM_BACKEND in the
      autoconf scripts if we detect an llvm-based compiler. We use
      this variable to define the llvm_CC_FLAVOR variable that we
      can use in the runtime code to conditionally compile for
  9. 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.
  10. 06 Sep, 2011 1 commit
  11. 05 Aug, 2011 1 commit
  12. 02 Aug, 2011 3 commits
  13. 26 Jun, 2011 1 commit
    • Sergei Trofimovich's avatar
      The patch fixes recognition of 'softfloat' targets as valid: · 690f7ec4
      Sergei Trofimovich authored
          ghc $ ./configure --build=armv5tel-softfloat-linux-gnueabi \
                            --host=armv5tel-softfloat-linux-gnueabi \
          checking for gfind... no
          checking for find... /usr/bin/find
          checking for sort... /usr/bin/sort
          checking for GHC version date... inferred 7.1.20110626
          checking for ghc... /usr/bin/ghc
          checking version of ghc... 7.0.4
          checking build system type... armv5tel-softfloat-linux-gnueabi
          checking host system type... armv5tel-softfloat-linux-gnueabi
          checking target system type... armv5tel-softfloat-linux-gnueabi
          Unknown vendor softfloat
      Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
  14. 25 Jun, 2011 1 commit
    • Ian Lynagh's avatar
      Fix gcc 4.6 warnings; fixes #5176 · 0a6f26f6
      Ian Lynagh authored
      Based on a patch from David Terei.
      Some parts are a little ugly (e.g. defining things that only ASSERTs
      use only when DEBUG is defined), so we might want to tweak things a
      I've also turned off -Werror for didn't-inline warnings, as we now
      get a few such warnings.
  15. 23 Jun, 2011 1 commit
  16. 22 Jun, 2011 1 commit
  17. 06 Jun, 2011 1 commit
  18. 05 May, 2011 1 commit
  19. 29 Apr, 2011 2 commits
  20. 23 Apr, 2011 2 commits
  21. 22 Apr, 2011 4 commits
  22. 20 Apr, 2011 1 commit
  23. 13 Apr, 2011 1 commit
  24. 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
       - 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
      The __stginit symbols are still generated, and the hs_add_root()
      function still exists (but does nothing), for backwards compatibility.
  25. 04 Apr, 2011 1 commit
  26. 13 Mar, 2011 1 commit
  27. 01 Mar, 2011 1 commit
    • Sergei Trofimovich's avatar
      configure: triplet: accept i486 CPU (and more), more vendors and OSes · c00ea87f
      Sergei Trofimovich authored
      Gentoo has interesting ports:
        - freebsd with following triplet:
              ./configure --build=i686-gentoo-freebsd8 --host=i686-gentoo-freebsd8 --host=i686-gentoo-freebsd8
          should be recognized as 'i386-unknown-freebsd'
        - 'pc' vendor along with non-'i386' is very common:
              ./configure --build=i486-pc-linux-gnu --i486-pc-linux-gnu --host=i486-pc-linux-gnu
              ./configure --build=i686-pc-linux-gnu --i686-pc-linux-gnu --host=i686-pc-linux-gnu
          should be recognized as 'i386-unknown-linux'
      Patch adds:
        - 'pc' vendor                 (maps to 'unknown')
        - 'gentoo' vendor             (maps to 'unknown')
        - 'i486', 'i586', 'i686' CPUs (maps to 'i386')
        - 'freebsd8' OS               (maps to 'freebsd')