summaryrefslogtreecommitdiff
path: root/README-hacking.md
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-12-20 09:44:30 +0100
committerAkim Demaille <akim.demaille@gmail.com>2020-12-20 15:56:22 +0100
commit611348e67bd45dcf0322e9a32ce7160c008c3e26 (patch)
treeaec1b6651fec429f738441be0b99bf6f1970bf41 /README-hacking.md
parentfe0102d4d5f37be5fdb9ed8e7bf8f15bff0a3683 (diff)
downloadbison-611348e67bd45dcf0322e9a32ce7160c008c3e26.tar.gz
glr2.cc: more checks
* data/skeletons/glr2.cc: Clarify use of magic numbers. (glr_stack_item::getState): Check the returned state.
Diffstat (limited to 'README-hacking.md')
-rw-r--r--README-hacking.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README-hacking.md b/README-hacking.md
index 028feae2..538f08e2 100644
--- a/README-hacking.md
+++ b/README-hacking.md
@@ -487,6 +487,16 @@ useful. Here's one way to set ASAN up with GCC 10 on Mac Ports
$ make check-local TESTSUITEFLAGS='-j5 -k cex' ASAN_OPTIONS=detect_leaks=1
+5. You might need a suppression file. See
+ https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions.
+ With G++ on a Mac, you might need a suppression file (say
+ leak.suppression) that contains:
+
+ leak:std::clog
+
+ and pass the additional flags
+ `LSAN_OPTIONS=suppressions=$PWD/leak.suppressions,print_suppressions=0`
+
## make maintainer-check-valgrind
This target uses valgrind both to check bison, and the generated parsers.