1. 05 Aug, 2012 3 commits
  2. 16 Jul, 2012 2 commits
    • Ian Lynagh's avatar
      Make -fPIC a dynamic flag · cdf946e4
      Ian Lynagh authored
      Hopefully I've kept the logic the same, and we now generate warnings if
      the user does -fno-PIC but we ignore them (e.g. because they're on OS X
      amd64).
      cdf946e4
    • Ian Lynagh's avatar
      Make a picPOpts function · 5d0fce85
      Ian Lynagh authored
      We now handle the preprocessor options the same way as the gcc options
      (picCCOpts).
      5d0fce85
  3. 14 Jun, 2012 1 commit
  4. 12 Jun, 2012 2 commits
  5. 11 Jun, 2012 1 commit
    • Ian Lynagh's avatar
      Pass DynFlags to the LogAction · 5716a2f8
      Ian Lynagh authored
      A side-effect is that we can no longer use the LogAction in
      defaultErrorHandler, as we don't have DynFlags at that point.
      But all that defaultErrorHandler did is to print Strings as
      SevFatal, so now it takes a 'FatalMessager' instead.
      5716a2f8
  6. 29 May, 2012 1 commit
  7. 27 Apr, 2012 1 commit
    • kgardas's avatar
      add support for ARM hard-float ABI (fixes #5914) · 3144f856
      kgardas authored
      This patch enhances Platform's ArchARM to include ARM ABI value. It also
      tweaks configure machinery to detect hard-float ABI and to set it wherever
      needed. Finally when hard-float ABI is in use, pass appropriate compiler
      option to the LLVM's llc. Fixes #5914.
      3144f856
  8. 06 Mar, 2012 1 commit
  9. 27 Feb, 2012 1 commit
  10. 16 Feb, 2012 1 commit
  11. 17 Jan, 2012 1 commit
  12. 14 Jan, 2012 1 commit
  13. 13 Jan, 2012 1 commit
  14. 19 Dec, 2011 2 commits
  15. 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.
      498467cf
  16. 24 Nov, 2011 1 commit
  17. 22 Nov, 2011 6 commits
  18. 21 Nov, 2011 1 commit
  19. 18 Nov, 2011 1 commit
  20. 16 Nov, 2011 3 commits
    • Simon Marlow's avatar
    • Simon Marlow's avatar
    • Simon Marlow's avatar
      Generate the C main() function when linking a binary (fixes #5373) · 1df28a80
      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.
      1df28a80
  21. 11 Nov, 2011 1 commit
  22. 20 Oct, 2011 1 commit
  23. 19 Oct, 2011 1 commit
  24. 13 Oct, 2011 1 commit
  25. 11 Oct, 2011 1 commit
  26. 06 Oct, 2011 2 commits
    • Ian Lynagh's avatar
      Use -no_compact_unwind on OS X x86 (as well as x86_64) · be6e231c
      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
      be6e231c
    • Ian Lynagh's avatar
      Silence "text reloc" warnings on OS X / x86 · 20705dff
      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.
      20705dff
  27. 21 Aug, 2011 1 commit