1. 15 Aug, 2014 2 commits
  2. 14 Aug, 2014 2 commits
    • Herbert Valerio Riedel's avatar
      Declare `ghc-head` to be haddock's upstream branch · 03a8003e
      Herbert Valerio Riedel authored
      This will affect commands such as
      
         git submodule update --remote utils/haddock
      
      to use `ghc-head` instead of the default `master` branch
      03a8003e
    • Herbert Valerio Riedel's avatar
      Implement new CLZ and CTZ primops (re #9340) · e0c1767d
      Herbert Valerio Riedel authored
      This implements the new primops
      
        clz#, clz32#, clz64#,
        ctz#, ctz32#, ctz64#
      
      which provide efficient implementations of the popular
      count-leading-zero and count-trailing-zero respectively
      (see testcase for a pure Haskell reference implementation).
      
      On x86, NCG as well as LLVM generates code based on the BSF/BSR
      instructions (which need extra logic to make the 0-case well-defined).
      
      Test Plan: validate and succesful tests on i686 and amd64
      
      Reviewers: rwbarton, simonmar, ezyang, austin
      
      Subscribers: simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D144
      
      GHC Trac Issues: #9340
      e0c1767d
  3. 13 Aug, 2014 3 commits
  4. 12 Aug, 2014 18 commits
  5. 11 Aug, 2014 4 commits
  6. 10 Aug, 2014 11 commits
    • rwbarton's avatar
      Make IntAddCOp, IntSubCOp into GenericOps · 5f5d6629
      rwbarton authored
      ... in preparation for backend-specific implementations.
      
      No functional changes in this commit (except in panic messages
      for ill-formed Cmm).
      
      Differential Revision: https://phabricator.haskell.org/D138
      5f5d6629
    • rwbarton's avatar
      Eliminate some code duplication in x86 backend (genCCall32/64) · c80d2381
      rwbarton authored
      Summary:
      No functional changes except in panic messages.
      
      These functions were identical except for
      - x87 operations in genCCall32
      - the fallback to genCCall32'/64'
      - "32" vs "64" in panic messages (one case was wrong!)
      - minor syntactic or otherwise non-functional differences.
      
      Test Plan:
      Ran "validate --no-dph --slow" before and after the change.
      Only differences were two tests that failed before the change but not after,
      further investigation revealed that those tests are in fact erratic.
      
      Reviewers: simonmar, austin
      
      Reviewed By: austin
      
      Subscribers: phaskell, simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D139
      c80d2381
    • snoyberg's avatar
      Improve seq documentation; part of trac issue #9390 · cbfa1076
      snoyberg authored
      Summary: Signed-off-by: Michael Snoyman <michael@snoyman.com>
      
      Test Plan: Review documentation change
      
      Reviewers: simonpj, austin
      
      Reviewed By: austin
      
      Subscribers: phaskell, hvr, simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D136
      
      GHC Trac Issues: #9390
      cbfa1076
    • etrepum's avatar
      fix darwin threaded static linking by removing -lpthread option #9189 · 8d90ffae
      etrepum authored
      Summary: Signed-off-by: Bob Ippolito <bob@redivi.com>
      
      Test Plan: See repro instructions in trac #9189
      
      Reviewers: austin
      
      Reviewed By: austin
      
      Subscribers: phaskell, simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D120
      
      GHC Trac Issues: #9189
      8d90ffae
    • Austin Seipp's avatar
    • Sergei Trofimovich's avatar
      rts/Printer.c: drop zcode mangling/demangling support in C code · 7a754a94
      Sergei Trofimovich authored
      Summary:
      GHC's RTS contains ancient Zdecode code which changed format a bit.
      It's easier to drop broken part and show original names.
      
      The patch changes output for './hello +RTS -Da' (apply)
      from such gibberish:
      
          stg_ap_v_ret... PAP/1(0x92922a, &i!_-&i!_:<.s_r=Z)
          stg_ap_0_ret... base:GHC.MVar.MVar(0x7fd3d1f040f8)
          stg_ap_v_ret... THUNK(&i!_-&i!_i!f.Z)
          stg_ap_v_ret... PAP/1(0x92c1f3, EO_:<.s_r=Z, EP_:<.s_r=Z)
          stg_ap_0_ret... ghc-prim:GHC.Tuple.(,)(0x7fd3d1f04209, 0x7fd3d1f041fa)
          stg_ap_0_ret... ghc-prim:GHC.Types.:(0x7fd3d1f04301, 0x7fd3d1f042ea)
          stg_ap_0_ret... THUNK(3F0_i!f.Z, 0x9152a1)
          stg_ap_0_ret... FUN/3(&s=_GHCziIOziFD_z/fB_ff=r=/IOFD14_i!f.Z)
          stg_ap_ppv_ret... FUN/3(&s=_GHCziIOziFD_z/fB_ff=r=/IOFD14_i!f.Z)
          stg_ap_0_ret... FUN/2(&s=_GHCziIOziFD_z/fIOD=vi:=FD15_i!f.Z)
          stg_ap_pv_ret... FUN/2(&s=_GHCziIOziFD_z/fIOD=vi:=FD15_i!f.Z)
          stg_ap_0_ret... base:GHC.IO.Handle.Types.FileHandle(5'A_:<.s_r=Z, 0x7fd3d1f04ef0)
          stg_ap_v_ret... THUNK(*>_&+_2__+/_i!f.Z, 0x7fd3d1f0602a, 0x7fd3d1f04f10)
          stg_ap_v_ret... PAP/1(0x7fd3d1f0602a, 0x7fd3d1f04f10)
      
      to something more readable:
      
          stg_ap_v_ret... PAP/1(0x92922a, <Main_main_closure>[0x90b710])
          stg_ap_0_ret... base:GHC.MVar.MVar(0x7f1e256040f8)
          stg_ap_v_ret... THUNK(<Main_main_info>[0x4046c8])
          stg_ap_v_ret... PAP/1(0x92c1f3, <sEO_closure>[0x90b6f0], <sEP_closure>[0x90b6d0])
          stg_ap_0_ret... ghc-prim:GHC.Tuple.(,)(0x7f1e25604209, 0x7f1e256041fa)
          stg_ap_0_ret... ghc-prim:GHC.Types.:(0x7f1e25604301, 0x7f1e256042ea)
          stg_ap_0_ret... THUNK(<s3F0_info>[0x434f70], 0x9152a1)
          stg_ap_0_ret... FUN/3(<base_GHCziIOziFD_zdfBufferedIOFD14_info>[0x5f5198])
          stg_ap_ppv_ret... FUN/3(<base_GHCziIOziFD_zdfBufferedIOFD14_info>[0x5f5198])
          stg_ap_0_ret... FUN/2(<base_GHCziIOziFD_zdfIODeviceFD15_info>[0x5f7c60])
          stg_ap_pv_ret... FUN/2(<base_GHCziIOziFD_zdfIODeviceFD15_info>[0x5f7c60])
          stg_ap_0_ret... base:GHC.IO.Handle.Types.FileHandle(<r5qA_closure>[0x91a920], 0x7f1e25604ef0)
          stg_ap_v_ret... THUNK(<stg_ap_2_upd_info>[0x6b1c60], 0x7f1e2560602a, 0x7f1e25604f10)
          stg_ap_v_ret... PAP/1(0x7f1e2560602a, 0x7f1e25604f10)
      
      First observed on '+RTS -Di' (interpreter) on unregisterised builds.
      Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
      
      Test Plan: built 'hello world' with -debug in moth modes and ran under '+RTS -Da'
      
      Reviewers: simonmar, austin, ezyang
      
      Reviewed By: austin, ezyang
      
      Subscribers: phaskell, rwbarton, simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D116
      7a754a94
    • kgardas's avatar
      change topHandler02/topHandler03 tests to use signal_exit_code function · 238fd05e
      kgardas authored
      Test Plan: validate
      
      Reviewers: simonmar, austin
      
      Reviewed By: austin
      
      Subscribers: phaskell, simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D127
      238fd05e
    • Austin Seipp's avatar
      Don't build or test dph by default · bb003086
      Austin Seipp authored
      Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
      bb003086
    • kgardas's avatar
      fix T4981-V3 to avoid DOS line endings · ba3650c8
      kgardas authored
      ba3650c8
    • kgardas's avatar
      fix T4981-V3 and T9208 tests for no newline at end of file warning · 23969408
      kgardas authored
      Test Plan: validated on Linux and tested on Solaris
      
      Reviewers: ezyang, austin
      
      Reviewed By: ezyang, austin
      
      Subscribers: phaskell, simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D134
      23969408
    • kgardas's avatar
      fix T4201 to avoid GNU grep specific -B option by usage of pure POSIX tools · 02be4ff7
      kgardas authored
      Test Plan: validated on Linux and tested on Solaris
      
      Reviewers: austin
      
      Reviewed By: austin
      
      Subscribers: phaskell, simonmar, relrod, ezyang, carter
      
      Differential Revision: https://phabricator.haskell.org/D135
      02be4ff7