Commit 5d7a873a authored by Thomas Miedema's avatar Thomas Miedema
Browse files

Testsuite: don't warn about missing specialisations

They can only occur with `-O`, but we want tests to produce the same
output for all test ways.

This brings us closer to passing the complete testsuite.

Differential Revision: https://phabricator.haskell.org/D1203
parent 3cc8f075
...@@ -738,6 +738,7 @@ warnMissingSpecs :: DynFlags -> [Id] -> Bool ...@@ -738,6 +738,7 @@ warnMissingSpecs :: DynFlags -> [Id] -> Bool
-- See Note [Warning about missed specialisations] -- See Note [Warning about missed specialisations]
warnMissingSpecs dflags callers warnMissingSpecs dflags callers
| wopt Opt_WarnAllMissedSpecs dflags = True | wopt Opt_WarnAllMissedSpecs dflags = True
| not (wopt Opt_WarnMissedSpecs dflags) = False
| null callers = False | null callers = False
| otherwise = all has_inline_prag callers | otherwise = all has_inline_prag callers
where where
......
...@@ -44,6 +44,10 @@ TEST_HC_OPTS = -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user- ...@@ -44,6 +44,10 @@ TEST_HC_OPTS = -fforce-recomp -dcore-lint -dcmm-lint -dno-debug-output -no-user-
# #
TEST_HC_OPTS += -fno-warn-tabs TEST_HC_OPTS += -fno-warn-tabs
# Don't warn about missing specialisations. They can only occur with `-O`, but
# we want tests to produce the same output for all test ways.
TEST_HC_OPTS += -fno-warn-missed-specialisations
RUNTEST_OPTS = RUNTEST_OPTS =
ifeq "$(filter $(TargetOS_CPP), cygwin32 mingw32)" "" ifeq "$(filter $(TargetOS_CPP), cygwin32 mingw32)" ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment