aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/Makefile
diff options
context:
space:
mode:
authorMatthew Wilcox <willy@infradead.org>2018-05-19 16:30:54 -0400
committerMatthew Wilcox <willy@infradead.org>2018-08-21 23:31:20 -0400
commitd1c0d5e3c63d61226a75f24d5c35fe20755f0180 (patch)
treee29ecd34507fc26355626633e4d433955a67643b /tools/testing/radix-tree/Makefile
parentradix tree test suite: Fix compilation (diff)
downloadlinux-dev-d1c0d5e3c63d61226a75f24d5c35fe20755f0180.tar.xz
linux-dev-d1c0d5e3c63d61226a75f24d5c35fe20755f0180.zip
radix tree test suite: Enable ubsan
Add support for the undefined behaviour sanitizer and fix the bugs that ubsan pointed out. Nothing major, and all in the test suite, not the code. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'tools/testing/radix-tree/Makefile')
-rw-r--r--tools/testing/radix-tree/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/radix-tree/Makefile b/tools/testing/radix-tree/Makefile
index db66f8a0d4be..da030a65d6d6 100644
--- a/tools/testing/radix-tree/Makefile
+++ b/tools/testing/radix-tree/Makefile
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
-CFLAGS += -I. -I../../include -g -O2 -Wall -D_LGPL_SOURCE -fsanitize=address
-LDFLAGS += -fsanitize=address
+CFLAGS += -I. -I../../include -g -Og -Wall -D_LGPL_SOURCE -fsanitize=address \
+ -fsanitize=undefined
+LDFLAGS += -fsanitize=address -fsanitize=undefined
LDLIBS+= -lpthread -lurcu
TARGETS = main idr-test multiorder
CORE_OFILES := radix-tree.o idr.o linux.o test.o find_bit.o