Skip to content
Permalink
Branch: ghc-7.10-with-…
Commits on Nov 22, 2015
  1. parser: show possible tokens on syntax errors

    da-x committed Apr 16, 2015
    example 1: test i = case i of  2
    parse error (possibly incorrect indentation or mismatched brackets), possible tokens: '|' '->'
    
    example 2: test i = i  where e
    parse error (possibly incorrect indentation or mismatched brackets), possible tokens: '=' '|'
    
    example 3: data X = X { bla :: Int     test :: Int }
    parse error on input, possible tokens: '}' ‘::’
    
    Signed-off-by: Dan Aloni <dan@kernelim.com>
  2. Follow-up fix to 3e2a4ee (re #11109)

    hvr committed Nov 22, 2015
    Using `:` as sed-`s`-expr separator is not a good idea on windows, as
    this can result in an expression like
    
       's:@install@:$(subst ../install-sh,E:/msys64/home/foo/ghc/install-sh,@install@):g'
    
    (note the `E:/` drive component)
    
    Using `|` instead of `:` has less risk of collision with the substitution expression
  3. Remove accidentally added T10359 blob

    hvr committed Nov 22, 2015
    This sneaked in via 2325bd4 / D1468 / #4012
    
    This is frustrating... we've added a useless 2.4MiB binary blob to our
    Git history which wastes *everyones* bandwidth for eternity
    (unless we truncate or rewrite history).
    
    We should add lint-checks and/or a pre-receive commit hook test to prevent
    this in future.
Commits on Nov 21, 2015
  1. Function definition in GHCi

    roshats authored and bgamari committed Nov 21, 2015
    This patch allows define and re-define functions in ghci. `let` is not
    required anymore (but can be used).
    
    Idea: If ghci input string can be parsed as statement then run it as
    statement else run it as declaration.
    
    Reviewers: mpickering, bgamari, austin
    
    Reviewed By: mpickering, bgamari, austin
    
    Subscribers: hvr, mpickering, dterei, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1299
    
    GHC Trac Issues: #7253
  2. Create a deterministic version of tyVarsOfType

    niteria authored and bgamari committed Nov 21, 2015
    I've run into situations where I need deterministic `tyVarsOfType` and
    this implementation achieves that and also brings an algorithmic
    improvement.  Union of two `VarSet`s takes linear time the size of the
    sets and in the worst case we can have `n` unions of sets of sizes
    `(n-1, 1), (n-2, 1)...` making it quadratic.
    
    One reason why we need deterministic `tyVarsOfType` is in `abstractVars`
    in `SetLevels`. When we abstract type variables when floating we want
    them to be abstracted in deterministic order.
    
    Test Plan: harbormaster
    
    Reviewers: simonpj, goldfire, austin, hvr, simonmar, bgamari
    
    Reviewed By: simonmar
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1468
    
    GHC Trac Issues: #4012
  3. Add DVarSet - a deterministic set of Vars

    niteria authored and bgamari committed Nov 21, 2015
    This implements `DVarSet`, a deterministic set of Vars, with an
    interface very similar to `VarSet` with a couple of functions missing.
    
    I will need this in changes that follow, one of them will be about
    changing the type of the set of Vars that `RuleInfo` holds to make the
    free variable computation deterministic.
    
    Test Plan:
    ./validate
    I can add new tests if anyone wants me to.
    
    Reviewers: simonpj, simonmar, austin, bgamari
    
    Reviewed By: simonmar, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1487
    
    GHC Trac Issues: #4012
  4. Suppress conflicting types for builtins warnings

    hvr authored and bgamari committed Nov 21, 2015
    GCC 4.0 and later warn about type-conflicting prototypes for built-in
    functions such as `strlen`. This is a problem for the via-c backend as
    it generates code such as
    
      typedef void *(*(*StgFunPtr)(void))(void);
      extern StgFunPtr strlen();
    
    However, by using the `-fno-builtin` flag, GCC is told not to try to
    auto-detect such built-in functions and instead treat them as ordinary
    external functions.  This also suppresses this warning.
    
    This address #7660
    
    Test Plan: IIAM
    
    Reviewers: bgamari, austin
    
    Reviewed By: austin
    
    Subscribers: thomie, erikd
    
    Differential Revision: https://phabricator.haskell.org/D1506
    
    GHC Trac Issues: #7660
  5. RtsFlags: Fix const warning

    bgamari committed Nov 21, 2015
    Reviewers: austin
    
    Reviewed By: austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1509
  6. Fix Windows builds after D1242

    Mistuke committed Nov 21, 2015
    Summary:
    Only use the merge_sections.ld linker script if SplitSections is enabled.
    
    I thought I had a way to make the linker script actually work on Windows
    and produce object files instead of image files (by using the "INSERT AFTER"
    linker script command to get the default script's output format setting),
    but that fix caused ghci to crash with an illegal instruction on startup.
    
    Gave up and made a simpler fix of just disabling this for normal builds,
    as it's only really relevant with SplitSections enabled anyway.
    
    Reviewers: austin, thomie, bgamari
    
    Reviewed By: austin, thomie
    
    Subscribers: Phyx, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1505
    
    GHC Trac Issues: #8405
Commits on Nov 20, 2015
  1. Follow-up fixup to c5d8162

    hvr committed Nov 20, 2015
    This was missing from c5d8162 / D1501
    for some reason causing the AIX detection to result in `OSUnknown`
    rather than `OSAIX`.
  2. base: Delete errant GHC/Stack.hsc

    bgamari committed Nov 19, 2015
    This was added in 8988be8, probably due
    to an incorrect merge resolution. The build system has been building
    `Stack.hs`.
  3. users-guide: Fix version number

    bgamari committed Nov 19, 2015
    Previously used GhcVersion, which is apparently the version of the
    bootstrap compiler. ProjectVersion appears to be the thing to use here.
  4. user's guide: Fix some accidental triple-` quote

    hvr authored and thoughtpolice committed Nov 20, 2015
    Reviewed By: austin
    
    Differential Revision: https://phabricator.haskell.org/D1503
  5. ghci: don't let ctags/etags overwrite source files

    thoughtpolice committed Nov 20, 2015
    A ource file which was accidently passed as parameter into `:ctags` or `:etags`
    can be overwritten by tag data. This patch updates documentation to avoid
    confusion in commands usage and prevents `collateAndWriteTags` from modifying
    existing source files.
    
    Reviewed By: thomie, bgamari, austin
    
    Differential Revision: https://phabricator.haskell.org/D1471
    
    GHC Trac Issues: #10989
Commits on Nov 19, 2015
  1. Pattern Synonym Documentation

    mpickering committed Nov 19, 2015
    Summary:
    This patch adds documentation for record pattern synonyms (D1258) and
    bundling pattern synonyms with type constructors in export lists (D1152).
    
    There are also other small improvements motivated by #10900.
    
    Reviewers: goldfire, bgamari, austin
    
    Reviewed By: bgamari
    
    Subscribers: goldfire, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1325
    
    GHC Trac Issues: #10900
  2. Bump process submodule

    bgamari committed Nov 19, 2015
  3. Unbreak Text.Read.Lex.lex on Unicode symbols

    strake authored and bgamari committed Nov 19, 2015
    Reviewers: thomie, hvr, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: bgamari, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1480
    
    GHC Trac Issues: #10444
  4. Set AIX specific CFLAGS flags

    hvr authored and bgamari committed Nov 19, 2015
    First of all, we need to use -mminimal-toc on IBM AIX
    
    AIX's XCOFF is limited to 16k entries in its TOC for 32bit compilation,
    which quickly overflows with GHC's code generation.
    
    Otoh, the Parser.hs module contains more entries than fit into a
    minimal-toc, so we need to switch back to `-mfull-toc` for that single
    module again.
    
    Then, we also need to set the `THREAD_SAFE` CPP #define in order to
    unlock the thread-safe `errno` which is essential for the threaded
    runtime.
    
    Depends on D1501
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, erikd
    
    Differential Revision: https://phabricator.haskell.org/D1502
  5. Make GHC aware of OSAIX and AixLD

    hvr authored and bgamari committed Nov 19, 2015
    GHC needs to be aware of targetting AIX because
    AIX requires some special handling for the toolchain
    (similiar to Solaris)
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, erikd
    
    Differential Revision: https://phabricator.haskell.org/D1501
  6. derivedConstants: Add support for AIX

    hvr authored and bgamari committed Nov 19, 2015
    On IBM AIX `nm` doesn't support reporting symbol sizes, so we need to
    resort to `objdump` instead, which has a peculiar output format on AIX.
    
    depends on D1499
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: kgardas, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1500
  7. Make `derivedConstants` more crosscompile-friendly

    hvr authored and bgamari committed Nov 19, 2015
    `derivedConstants` currently uses `System.Info.os` for decisions (which
    doesn't necessarily reflect the build-target), as well as hardcoding
    "/usr/bin/objdump" for openbsd.
    
    This patch auto-detects `objdump` similiar to how `nm` is detected via
    Autoconf as well as passing the target-os into `derivedConstants` via
    commandline.
    
    Reviewers: austin, kgardas, erikd, bgamari
    
    Reviewed By: kgardas, erikd, bgamari
    
    Subscribers: kgardas, thomie, erikd
    
    Differential Revision: https://phabricator.haskell.org/D1499
  8. Fix broken build-system when libffi uses install-sh

    hvr authored and bgamari committed Nov 19, 2015
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1494
    
    GHC Trac Issues: #11109
  9. Fix interaction of DuplicateRecordFields and GHC.Generics

    adamgundry authored and bgamari committed Nov 19, 2015
    This prevents GHC.Generics from exposing mangled selector names
    when used on a datatype defined with DuplicateRecordFields enabled.
    
    Test Plan:
    New test overloadedrecflds_generics, which tests that both
    GHC.Generics and Data.Data use the correct field labels, not mangled
    names.
    
    Reviewers: kosmikus, simonpj, austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1486
  10. Release Notes: Mention out-of-scope error message improvements

    nomeata committed Nov 18, 2015
    Summary: as implemented for #11071.
    
    Differential Revision: https://phabricator.haskell.org/D1498
Commits on Nov 18, 2015
  1. Mention "-XMonadFailDesugaring" in the docs

    quchen authored and bgamari committed Nov 18, 2015
    Reviewers: austin, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1496
  2. Correct &gt; to > in user's guide

    rwbarton authored and bgamari committed Nov 18, 2015
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1497
  3. users-guide: Move <h1> outside of <a> tag

    bgamari committed Nov 18, 2015
    Otherwise the header extends across the entire body, increasing the
    chance that the user hits it instead of the "next" link below it.
  4. Fix inconsistent pretty-printing of type families

    michalsosn authored and bgamari committed Nov 18, 2015
    After the changes, the three functions used to print type families
    were identical, so they are refactored into one.
    
    Original RHSs of data instance declarations are recreated and
    printed in user error messages.
    
    RHSs containing representation TyCons are printed in the
    Coercion Axioms section in a typechecker dump.
    
    Add vbar to the list of SDocs exported by Outputable.
    Replace all text "|" docs with it.
    
    Fixes #10839
    
    Reviewers: goldfire, jstolarek, austin, bgamari
    
    Reviewed By: jstolarek
    
    Subscribers: jstolarek, thomie
    
    Differential Revision: https://phabricator.haskell.org/D1441
    
    GHC Trac Issues: #10839
  5. Refactor HsExpr.RecordCon, RecordUpd

    simonpj committed Nov 18, 2015
    This follows Matthew's patch making pattern synoyms work
    with records.
    
    This patch
     - replaces the (PostTc id [FieldLabel]) field of
       RecordCon with (PostTc id ConLike)
    
     - record-ises both RecordCon and RecordUpd, which
       both have quite a lot of fields.
    
    No change in behaviour
  6. Comments only

    simonpj committed Nov 9, 2015
  7. users-guide: Fix typo in conf.py

    bgamari committed Nov 18, 2015
    inputenv /= inputenc
  8. relnotes: Update base version

    bgamari committed Nov 17, 2015
Older
You can’t perform that action at this time.