summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-01-27 22:22:03 -0600
committerAustin Seipp <austin@well-typed.com>2014-01-27 22:22:09 -0600
commit874124d71fb8af9c42fabd1b08e0e66545a02ff2 (patch)
treeb75a080056fa8fc0baef3adb04f09fb863b95a6d
parent4ade9627608ea0a88450506222bb9afbbcff4294 (diff)
downloadhaskell-874124d71fb8af9c42fabd1b08e0e66545a02ff2.tar.gz
Fix ./validate failure due to unused result.
Fallout from 4ade9627608ea0a88450506222bb9afbbcff4294 Signed-off-by: Austin Seipp <austin@well-typed.com>
-rw-r--r--compiler/main/GHC.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/main/GHC.hs b/compiler/main/GHC.hs
index 2f878fba7d..553d1a935f 100644
--- a/compiler/main/GHC.hs
+++ b/compiler/main/GHC.hs
@@ -468,11 +468,14 @@ checkBrokenTablesNextToCode :: MonadIO m => DynFlags -> m ()
checkBrokenTablesNextToCode dflags
= do { broken <- checkBrokenTablesNextToCode' dflags
; when broken
- $ do { liftIO $ throwIO $ mkApiErr dflags
- (text "Tables-next-to-code not supported on ARM using binutils ld (https://sourceware.org/bugzilla/show_bug.cgi?id=16177)")
+ $ do { _ <- liftIO $ throwIO $ mkApiErr dflags invalidLdErr
; fail "unsupported linker"
}
}
+ where
+ invalidLdErr = text "Tables-next-to-code not supported on ARM" <+>
+ text "when using binutils ld (please see:" <+>
+ text "https://sourceware.org/bugzilla/show_bug.cgi?id=16177)"
checkBrokenTablesNextToCode' :: MonadIO m => DynFlags -> m Bool
checkBrokenTablesNextToCode' dflags