Skip to content
Snippets Groups Projects
  1. Mar 15, 2017
    • Rufflewind's avatar
      Track column numbers · df6b31d7
      Rufflewind authored and Ben Gamari's avatar Ben Gamari committed
      Summary:
      Keep track of column numbers and inform GHC whenever the column number
      could be potentially desynchronized from the original source code.  This
      should fix GHC #13388 on Trac.
      
      Test Plan: validate
      
      Reviewers: O25 HSC2HS, hvr, bgamari
      
      Reviewed By: bgamari
      
      Differential Revision: https://phabricator.haskell.org/D3314
      df6b31d7
  2. Nov 04, 2016
    • Erik de Castro Lopo's avatar
      Fix type signature of main test function · fe2de68c
      Erik de Castro Lopo authored
      During C compiler feature testing, the `main` function was defined
      with a parameter list of `(int argc, char *argv [])` but these
      parameters were not used. This results in compiler warnings when
      the generated file is compiled with the `-Wextra` warning flag
      added to the `cc-options` of the cabal file.
      
      Reviewers: hvr, RyanGlScott, bgamari, rwbarton
      
      Reviewed By: rwbarton
      
      Differential Revision: https://phabricator.haskell.org/D2677
      fe2de68c
  3. Dec 19, 2015
    • Ryan Scott's avatar
      Add alignment to hsc2hs template · d9c13cb8
      Ryan Scott authored and Thomas Miedema's avatar Thomas Miedema committed
      Previously, calculating alignment values was commonly done by defining a
      custom macro via `#let`:
      
      ```
      (y__); }, y__)
      ```
      
      Not only is this tedious, but it also doesn't work in cross-compilation
      mode (see #10272). It makes sense to define this in `hsc2hs` for symmetry
      with `#size`, `#poke`, `#peek`, etc., as well as to make it easier to
      cross-compile `.hsc` files.
      
      Fixes #4340.
      
      Reviewed By: thomie, erikd
      
      Differential Revision: https://phabricator.haskell.org/D1436
      
      GHC Trac Issues: #4340, #10272
      d9c13cb8
  4. Dec 27, 2014
  5. Oct 22, 2012
  6. Oct 25, 2011
    • Ian Lynagh's avatar
      Various hsc2hs improvements · 5f3ac526
      Ian Lynagh authored
      * Fix GHC trac #2897: Generate a separate "utils" C file containing
        wrappers for functions like printf. This means template-hsc.h
        doesn't need to includes any headers, so we don't pollute the C
        environment.
        (actually, we still need to include stddef.h).
      
      * Use runProcess rather than system. It used to try to conditionally
        use runProcess if it was available, but never actually did. Now it
        uses it unconditionally.
      
      * Some tidying up
      5f3ac526
  7. Aug 08, 2011
    • Ian Lynagh's avatar
      Remove the support for old GHC versions · f8cbf37a
      Ian Lynagh authored
      The conditional code was all for versions < 6.10, so old enough that
      they can't be used to compile the HEAD.
      
      Additionally, it didn't work properly. It relied on __GLASGOW_HASKELL__
      being defined when compiling the C, rather than having the C print the
      conditionals as part of the Haskell.
      f8cbf37a
  8. Mar 24, 2011
  9. Mar 23, 2011
  10. Dec 22, 2010
  11. Dec 18, 2010
  12. Oct 13, 2010
  13. Jun 05, 2010
  14. Apr 20, 2010
  15. Mar 24, 2010
  16. Mar 22, 2010
  17. Mar 19, 2010
  18. Aug 02, 2009
  19. Jul 04, 2009
  20. Jul 01, 2009
  21. Mar 23, 2009
  22. Feb 17, 2009
  23. Aug 21, 2008
  24. Jul 28, 2008
  25. Jul 27, 2008
  26. Jul 24, 2008
  27. Jul 23, 2008
  28. Jul 22, 2008
Loading