summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Flags.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-12-07 08:47:16 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-12-21 01:46:00 -0500
commit5ff47ff5bb815e18e03fab42ffae7d735ea70976 (patch)
treea866f6b824ff746bc3837cfb5b74d0636ace6ae7 /compiler/GHC/Driver/Flags.hs
parent887d8b4c409c06257a63751e4e84c86ddf5cc874 (diff)
downloadhaskell-5ff47ff5bb815e18e03fab42ffae7d735ea70976.tar.gz
codeGen: Introduce flag to bounds-check array accesses
Here we introduce code generator support for instrument array primops with bounds checking, enabled with the `-fcheck-prim-bounds` flag. Introduced to debug #20769.
Diffstat (limited to 'compiler/GHC/Driver/Flags.hs')
-rw-r--r--compiler/GHC/Driver/Flags.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/Driver/Flags.hs b/compiler/GHC/Driver/Flags.hs
index c66cb85bfe..d0d114dba8 100644
--- a/compiler/GHC/Driver/Flags.hs
+++ b/compiler/GHC/Driver/Flags.hs
@@ -149,6 +149,7 @@ data GeneralFlag
| Opt_DoCmmLinting
| Opt_DoAsmLinting
| Opt_DoAnnotationLinting
+ | Opt_DoBoundsChecking
| Opt_NoLlvmMangler -- hidden flag
| Opt_FastLlvm -- hidden flag
| Opt_NoTypeableBinds