[FFmpeg-cvslog] configure: support gcc-4.8 instrumentation
Luca Barbato
git at videolan.org
Wed May 29 04:37:42 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue May 14 22:41:14 2013 +0200| [0ba49d28a1c58e1fc16c0406617a3bfc99c322dd] | committer: Luca Barbato
configure: support gcc-4.8 instrumentation
Since version 4.8 gcc sports asan and tsan integration that can
be leveraged when hunting bugs.
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ba49d28a1c58e1fc16c0406617a3bfc99c322dd
---
configure | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/configure b/configure
index 616e4bd..e890c15 100755
--- a/configure
+++ b/configure
@@ -2214,6 +2214,16 @@ case "$toolchain" in
add_cflags -fsanitize=thread -pie
add_ldflags -fsanitize=thread -pie
;;
+ gcc-asan)
+ cc_default="gcc"
+ add_cflags -fsanitize=address
+ add_ldflags -fsanitize=address
+ ;;
+ gcc-tsan)
+ cc_default="gcc"
+ add_cflags -fsanitize=thread -pie -fPIC
+ add_ldflags -fsanitize=thread -pie -fPIC
+ ;;
valgrind-massif)
target_exec_default="valgrind"
target_exec_args="--alloc-fn=av_malloc --alloc-fn=av_mallocz"
More information about the ffmpeg-cvslog
mailing list