Merge commit 'd6a27f885b5d4cba7a82e50af423c741d2f37c3e'
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Feb 2014 22:38:30 +0000 (23:38 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 20 Feb 2014 22:39:49 +0000 (23:39 +0100)
* commit 'd6a27f885b5d4cba7a82e50af423c741d2f37c3e':
  configure: Add usan to the toolchain presets

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
configure

diff --cc configure
+++ b/configure
@@@ -2768,13 -2364,18 +2773,18 @@@ case "$toolchain" i
          add_cflags  -fsanitize=thread -pie -fPIC
          add_ldflags -fsanitize=thread -pie -fPIC
      ;;
+     gcc-usan)
+         cc_default="gcc"
+         add_cflags  -fsanitize=undefined
+         add_ldflags -fsanitize=undefined
+     ;;
      valgrind-massif)
 -        target_exec_default="valgrind"
 -        target_exec_args="--alloc-fn=av_malloc --alloc-fn=av_mallocz"
 +        target_exec_default=${valgrind:-"valgrind"}
 +        target_exec_args="--tool=massif --alloc-fn=av_malloc --alloc-fn=av_mallocz --alloc-fn=av_calloc --alloc-fn=av_fast_padded_malloc --alloc-fn=av_fast_malloc --alloc-fn=av_realloc_f --alloc-fn=av_fast_realloc --alloc-fn=av_realloc"
      ;;
      valgrind-memcheck)
 -        target_exec_default="valgrind"
 -        target_exec_args="--track-origins=yes --leak-check=full"
 +        target_exec_default=${valgrind:-"valgrind"}
 +        target_exec_args="--error-exitcode=1 --malloc-fill=0x2a --track-origins=yes --leak-check=full --gen-suppressions=all --suppressions=$source_path/tests/fate-valgrind.supp"
      ;;
      msvc)
          # Check whether the current MSVC version needs the C99 converter.