1. 10 Sep, 2013 5 commits
  2. 09 Sep, 2013 2 commits
    • thoughtpolice's avatar
      Fix optimization of Parser.y.pp · 9f8e9d29
      thoughtpolice authored
      
      
      In 9e133b, the build was modified to pass -fcmm-sink to Parser, but
      unfortunately Parser specifies -O0 in its OPTIONS_GHC directive, meaning
      the sinking pass was actually turned off.
      
      HC_OPTS is the last thing passed to the compiler for that source file
      however, so the correct fix is to also move -O0 out into the build
      system as well.
      
      This was uncovered thanks to a build report from Kazu Yamamoto. Thanks
      to Jan Stolarek for eyeballing this bug and finding it.
      Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
      9f8e9d29
    • jpm@cs.ox.ac.uk's avatar
      Remove -fwarn-typeable-instances · 9fb15842
      jpm@cs.ox.ac.uk authored
      9fb15842
  3. 08 Sep, 2013 1 commit
  4. 06 Sep, 2013 2 commits
    • thoughtpolice's avatar
      Add basic support for GHCJS · b372e8ea
      thoughtpolice authored
      
      
      This patch encompasses most of the basic infrastructure for GHCJS. It
      includes:
      
        * A new extension, -XJavaScriptFFI
        * A new architecture, ArchJavaScript
        * Parser and lexer support for 'foreign import javascript', only
          available under -XJavaScriptFFI, using ArchJavaScript.
        * As a knock-on, there is also a new 'WayCustom' constructor in
          DynFlags, so clients of the GHC API can add custom 'tags' to their
          built files. This should be useful for other users as well.
      
      The remaining changes are really just the resulting fallout, making sure
      all the cases are handled appropriately for DynFlags and Platform.
      Authored-by: Luite Stegeman's avatarLuite Stegeman <stegeman@gmail.com>
      Signed-off-by: thoughtpolice's avatarAustin Seipp <aseipp@pobox.com>
      b372e8ea
    • parcs's avatar
      a58ba185
  5. 04 Sep, 2013 11 commits
  6. 03 Sep, 2013 5 commits
    • eir@cis.upenn.edu's avatar
      Allow non-Nominal covars (bugfix) · 62d3fdeb
      eir@cis.upenn.edu authored
      62d3fdeb
    • Edsko de Vries's avatar
      Fix #7918 · be7f10bb
      Edsko de Vries authored
      be7f10bb
    • Jan Stolarek's avatar
      Comments and type synonym in CmmSink · 1957fddb
      Jan Stolarek authored
      1957fddb
    • Simon Peyton Jones's avatar
      Comment only · 32862bff
      Simon Peyton Jones authored
      32862bff
    • Simon Peyton Jones's avatar
      Improve Linting in GHCi (fixes Trac #8215) · dfa8ef03
      Simon Peyton Jones authored
      The original problem was that we weren't bringing varaibles bound in the
      interactive context into scope before Linting the result of a top-level
      declaration in GHCi.  (We were doing this for expressions.)
      
      Moreover I found that we weren't Linting the result of desugaring
      a GHCi expression, which we really should be doing.
      
      It took me a bit of time to unravel all this, and I did some refactoring
      to make it easier next time.
      
        * CoreMonad contains the Lint wrappers that get the right
          environments into place.  It always had endPass and lintPassResult
          (which Lints bindings), but now it has lintInteractiveExpr.
      
        * Both use a common function CoreMonad.interactiveInScope to find
          those in-scope variables.
      
      Quite a bit of knock-on effects from this, but nothing exciting.
      dfa8ef03
  7. 02 Sep, 2013 4 commits
    • Jan Stolarek's avatar
      Comments only · 9e2e84e0
      Jan Stolarek authored
      9e2e84e0
    • Simon Peyton Jones's avatar
      Make Specialise close over kind variables (fixes Trac #8196) · 8d7dd547
      Simon Peyton Jones authored
      This is a lingering bug from the introduction of polymorphic kinds.
      In the specialiser we were specialising over a type, but failing
      to specialise over the kinds it mentions.
      
      The fix is simple: add a call to closeOverKinds.
      
      Most of the patch is to add closeOverKinds, and to use it in a few
      other places where we are doing essentially the same thing.
      8d7dd547
    • Simon Peyton Jones's avatar
      Remove the final vestiges of InlineWrappers · e4a1d2d0
      Simon Peyton Jones authored
      Part of Nick Frisby's patch (c080f727)
      for late demand-analysis removed the over-zealous short-cut whereby
      strictness wrappers were not spelled out in detail in interface files.
      
      This patch completes the process by
       * removing InlineWrapper from UnfoldingSource
       * removing IfWrapper from IfaceUnfolding
      
      There was a tiny bit of special ad-hocery for wrappers, in OccurAnal,
      but fortunately that too turns out to be rendered irrelevant by
      the more uniform treatment, and after that there was no need
      to remember which functions are wrappers.
      e4a1d2d0
    • Edward Z. Yang's avatar
      Explicit import lists for StgCmmProf. · 5f98d44d
      Edward Z. Yang authored
      
      Signed-off-by: Edward Z. Yang's avatarEdward Z. Yang <ezyang@mit.edu>
      5f98d44d
  8. 31 Aug, 2013 1 commit
    • parcs's avatar
      Retain boot modules in getModLoop · a2e338f3
      parcs authored
      The parallel upsweep needs to know about _all_ the modules that make up
      a module loop in order to correctly determine a module's external loop
      dependencies. Otherwise, incorrect dependency information may be
      computed, resulting in an eventual deadlock during compilation.
      
      So don't filter boot modules in getModLoop, and instead have its callers
      filter them when needed.
      
      Following this change, GHC could compile itself via --make -O2 -j. Yay!
      a2e338f3
  9. 30 Aug, 2013 7 commits
  10. 29 Aug, 2013 2 commits