diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-07-11 01:18:05 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-07-11 01:18:05 +0000 |
commit | da233838c9b07365ad89c91dec336f6edf750c15 (patch) | |
tree | 6cf1b0b9ea284cc96d5c27c375142693d8c87d86 | |
parent | 3ed286a388836d0cdd2c8a19fb4c295a19935b47 (diff) | |
download | bcm5719-llvm-da233838c9b07365ad89c91dec336f6edf750c15.tar.gz bcm5719-llvm-da233838c9b07365ad89c91dec336f6edf750c15.zip |
clang-cl: Remove -O0 option
cl.exe doesn't understand it; there's /Od instead. See also the review
thread for r229575.
Update lots of compiler-rt tests to use -Od instead of -O0.
Ran `rg -l 'clang_cl.*O0' compiler-rt/test/ | xargs sed -i -c 's/-O0/-Od/'`
Differential Revision: https://reviews.llvm.org/D64506
llvm-svn: 365724
90 files changed, 121 insertions, 123 deletions
diff --git a/clang/include/clang/Driver/CLCompatOptions.td b/clang/include/clang/Driver/CLCompatOptions.td index 771424af789..a0af3035ea4 100644 --- a/clang/include/clang/Driver/CLCompatOptions.td +++ b/clang/include/clang/Driver/CLCompatOptions.td @@ -120,8 +120,6 @@ def _SLASH_J : CLFlag<"J">, HelpText<"Make char type unsigned">, def _SLASH_O : CLJoined<"O">, HelpText<"Set multiple /O flags at once; e.g. '/O2y-' for '/O2 /Oy-'">, MetaVarName<"<flags>">; -// FIXME: Not sure why we have -O0 here; MSVC doesn't support that. -def : CLFlag<"O0">, Alias<O0>, HelpText<"Disable optimization">; def : CLFlag<"O1">, Alias<_SLASH_O>, AliasArgs<["1"]>, HelpText<"Optimize for size (like /Og /Os /Oy /Ob2 /GF /Gy)">; def : CLFlag<"O2">, Alias<_SLASH_O>, AliasArgs<["2"]>, diff --git a/compiler-rt/test/asan/TestCases/Windows/aligned_mallocs.cc b/compiler-rt/test/asan/TestCases/Windows/aligned_mallocs.cc index df740b64e51..48bb2210106 100644 --- a/compiler-rt/test/asan/TestCases/Windows/aligned_mallocs.cc +++ b/compiler-rt/test/asan/TestCases/Windows/aligned_mallocs.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/allocators_sanity.cc b/compiler-rt/test/asan/TestCases/Windows/allocators_sanity.cc index 66a862d7aca..2738b4e7bd8 100644 --- a/compiler-rt/test/asan/TestCases/Windows/allocators_sanity.cc +++ b/compiler-rt/test/asan/TestCases/Windows/allocators_sanity.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/beginthreadex.cc b/compiler-rt/test/asan/TestCases/Windows/beginthreadex.cc index f2b2b4511ad..05d72a53910 100644 --- a/compiler-rt/test/asan/TestCases/Windows/beginthreadex.cc +++ b/compiler-rt/test/asan/TestCases/Windows/beginthreadex.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/bitfield.cc b/compiler-rt/test/asan/TestCases/Windows/bitfield.cc index 253a759b98d..174c92dbe44 100644 --- a/compiler-rt/test/asan/TestCases/Windows/bitfield.cc +++ b/compiler-rt/test/asan/TestCases/Windows/bitfield.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/bitfield_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/bitfield_uaf.cc index a1a2657934a..6462d31bfae 100644 --- a/compiler-rt/test/asan/TestCases/Windows/bitfield_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/bitfield_uaf.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/calloc_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/calloc_left_oob.cc index 459025bde92..d48d59f3a67 100644 --- a/compiler-rt/test/asan/TestCases/Windows/calloc_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/calloc_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/calloc_right_oob.cc b/compiler-rt/test/asan/TestCases/Windows/calloc_right_oob.cc index c976b87d970..4d114fd83f9 100644 --- a/compiler-rt/test/asan/TestCases/Windows/calloc_right_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/calloc_right_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/calloc_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/calloc_uaf.cc index db5e70741b7..bd14bb0797e 100644 --- a/compiler-rt/test/asan/TestCases/Windows/calloc_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/calloc_uaf.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/coverage-dll-stdio.cc b/compiler-rt/test/asan/TestCases/Windows/coverage-dll-stdio.cc index 92cd0a7bc04..5cba9a76c38 100644 --- a/compiler-rt/test/asan/TestCases/Windows/coverage-dll-stdio.cc +++ b/compiler-rt/test/asan/TestCases/Windows/coverage-dll-stdio.cc @@ -2,8 +2,8 @@ // __local_stdio_printf_options function isn't instrumented for coverage. // RUN: rm -rf %t && mkdir %t && cd %t -// RUN: %clang_cl_asan -fsanitize-coverage=func,trace-pc-guard -O0 %p/dll_host.cc -Fet.exe -// RUN: %clang_cl_asan -fsanitize-coverage=func,trace-pc-guard -LD -O0 %s -Fet.dll +// RUN: %clang_cl_asan -fsanitize-coverage=func,trace-pc-guard -Od %p/dll_host.cc -Fet.exe +// RUN: %clang_cl_asan -fsanitize-coverage=func,trace-pc-guard -LD -Od %s -Fet.dll // RUN: %run ./t.exe t.dll 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/crt_initializers.cc b/compiler-rt/test/asan/TestCases/Windows/crt_initializers.cc index 084f8a45e18..f33c16362a2 100644 --- a/compiler-rt/test/asan/TestCases/Windows/crt_initializers.cc +++ b/compiler-rt/test/asan/TestCases/Windows/crt_initializers.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t | FileCheck %s // This is a test for http://code.google.com/p/address-sanitizer/issues/detail?id=305 diff --git a/compiler-rt/test/asan/TestCases/Windows/demangled_names.cc b/compiler-rt/test/asan/TestCases/Windows/demangled_names.cc index 0e5939ee415..6d3019ef054 100644 --- a/compiler-rt/test/asan/TestCases/Windows/demangled_names.cc +++ b/compiler-rt/test/asan/TestCases/Windows/demangled_names.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s // // This test makes sure ASan symbolizes stack traces the way they are typically diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_aligned_mallocs.cc b/compiler-rt/test/asan/TestCases/Windows/dll_aligned_mallocs.cc index 8b2c4d6dd95..8ef428462f3 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_aligned_mallocs.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_aligned_mallocs.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: %run %t %t.dll | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_allocators_sanity.cc b/compiler-rt/test/asan/TestCases/Windows/dll_allocators_sanity.cc index 1d31f37ca90..35b47c43338 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_allocators_sanity.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_allocators_sanity.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: %run %t %t.dll | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_cerr.cc b/compiler-rt/test/asan/TestCases/Windows/dll_cerr.cc index 8f1a699ba80..792c05f70fd 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_cerr.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_cerr.cc @@ -1,9 +1,9 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: %run %t %t.dll 2>&1 | FileCheck %s // Test that it works correctly even with ICF enabled. -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll -link /OPT:REF /OPT:ICF +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll -link /OPT:REF /OPT:ICF // RUN: %run %t %t.dll 2>&1 | FileCheck %s #include <iostream> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cc b/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cc index b53cb3f6296..40d010d07e2 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_control_c.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t // RUN: %clang_cl_asan -LD -O2 %s -Fe%t.dll // RUNX: %run %t %t.dll 2>&1 | FileCheck %s diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_global_dead_strip.c b/compiler-rt/test/asan/TestCases/Windows/dll_global_dead_strip.c index 15cfd5a7ddb..845095d1d7c 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_global_dead_strip.c +++ b/compiler-rt/test/asan/TestCases/Windows/dll_global_dead_strip.c @@ -1,6 +1,6 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t // -// RUN: %clang_cl_asan /Gw -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan /Gw -LD -Od %s -Fe%t.dll // RUN: %env_asan_opts=report_globals=2 %run %t %t.dll 2>&1 | FileCheck %s --check-prefix=NOSTRIP // RUN: %clang_cl_asan /Gw -LD -O2 %s -Fe%t.dll -link -opt:ref // RUN: %env_asan_opts=report_globals=2 %run %t %t.dll 2>&1 | FileCheck %s --check-prefix=STRIP diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_host.cc b/compiler-rt/test/asan/TestCases/Windows/dll_host.cc index 9a4181541c4..37aad4800df 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_host.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_host.cc @@ -2,7 +2,7 @@ // // Just make sure we can compile this. // The actual compile&run sequence is to be done by the DLL tests. -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // // Get the list of ASan wrappers exported by the main module RTL: // note: The mangling decoration (i.e. @4 )is removed because calling convention diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memchr.cc b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memchr.cc index 6360cec87e5..7891a2afe0c 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memchr.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memchr.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s // On windows 64-bit, the memchr function is written in assembly and is not diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc index 53cb7ef1cce..2c284e76131 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy.cc @@ -1,9 +1,9 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -Wno-fortify-source -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s // Test that it works correctly even with ICF enabled. -// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll -link /OPT:REF /OPT:ICF +// RUN: %clang_cl_asan -Wno-fortify-source -LD -Od %s -Fe%t.dll -link /OPT:REF /OPT:ICF // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc index f05ee212116..49fde377fe7 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc index 51096e4bb30..ccf2e218360 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_memset.cc @@ -1,9 +1,9 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -Wno-fortify-source -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s // Test that it works correctly even with ICF enabled. -// RUN: %clang_cl_asan -Wno-fortify-source -LD -O0 %s -Fe%t.dll -link /OPT:REF /OPT:ICF +// RUN: %clang_cl_asan -Wno-fortify-source -LD -Od %s -Fe%t.dll -link /OPT:REF /OPT:ICF // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_strlen.cc b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_strlen.cc index f41d47858be..2e10c504ae3 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_intercept_strlen.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_intercept_strlen.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_malloc_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/dll_malloc_left_oob.cc index 0653ea45f6e..4ed50e9c6b5 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_malloc_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_malloc_left_oob.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_malloc_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/dll_malloc_uaf.cc index b286380ac44..adaded1df4b 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_malloc_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_malloc_uaf.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_noreturn.cc b/compiler-rt/test/asan/TestCases/Windows/dll_noreturn.cc index 2f6f0c755cc..dfe51aadbb7 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_noreturn.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_noreturn.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <process.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_null_deref.cc b/compiler-rt/test/asan/TestCases/Windows/dll_null_deref.cc index 0fb18de2916..5b3d97705c6 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_null_deref.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_null_deref.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s __attribute__((noinline)) diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc index 736ce80cc32..3983a2651bc 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s extern "C" __declspec(dllexport) diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc index b514c994c1d..4b0e45d8548 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s struct C { diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_poison_unpoison.cc b/compiler-rt/test/asan/TestCases/Windows/dll_poison_unpoison.cc index 6bd58eca219..bbc2730e129 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_poison_unpoison.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_poison_unpoison.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <sanitizer/asan_interface.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc b/compiler-rt/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc index e07f26f0834..0a8e3d8cdc3 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -LD -O0 -DDLL %s -Fe%t.dll -// RUN: %clang_cl_asan -O0 -DEXE %s %t.lib -Fe%te.exe +// RUN: %clang_cl_asan -LD -Od -DDLL %s -Fe%t.dll +// RUN: %clang_cl_asan -Od -DEXE %s %t.lib -Fe%te.exe // RUN: %env_asan_opts=report_globals=2 %run %te.exe 2>&1 | FileCheck %s // FIXME: Currently, the MT runtime build crashes on startup due to dbghelp.dll diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_seh.cc b/compiler-rt/test/asan/TestCases/Windows/dll_seh.cc index 0962138cb52..033892e744e 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_seh.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_seh.cc @@ -1,10 +1,10 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t // // Check both -GS and -GS- builds: -// RUN: %clang_cl_asan -GS -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -GS -LD -Od %s -Fe%t.dll // RUN: %run %t %t.dll // -// RUN: %clang_cl_asan -GS- -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -GS- -LD -Od %s -Fe%t.dll // RUN: %run %t %t.dll #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cc b/compiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cc index b6166d68120..44313195bc1 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_stack_use_after_return.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: %env_asan_opts=detect_stack_use_after_return=1 not %run %t %t.dll 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc index 75a094e548c..8959846b13e 100644 --- a/compiler-rt/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -O0 %p/dll_host.cc -Fe%t -// RUN: %clang_cl_asan -LD -O0 %s -Fe%t.dll +// RUN: %clang_cl_asan -Od %p/dll_host.cc -Fe%t +// RUN: %clang_cl_asan -LD -Od %s -Fe%t.dll // RUN: not %run %t %t.dll 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/double_free.cc b/compiler-rt/test/asan/TestCases/Windows/double_free.cc index 18a9fcb44a7..7a1dd3b5bd5 100644 --- a/compiler-rt/test/asan/TestCases/Windows/double_free.cc +++ b/compiler-rt/test/asan/TestCases/Windows/double_free.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/double_operator_delete.cc b/compiler-rt/test/asan/TestCases/Windows/double_operator_delete.cc index eae4a64c2b9..99a8fc4725e 100644 --- a/compiler-rt/test/asan/TestCases/Windows/double_operator_delete.cc +++ b/compiler-rt/test/asan/TestCases/Windows/double_operator_delete.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/global_const_string.cc b/compiler-rt/test/asan/TestCases/Windows/global_const_string.cc index 8c147c917c8..546419dad18 100644 --- a/compiler-rt/test/asan/TestCases/Windows/global_const_string.cc +++ b/compiler-rt/test/asan/TestCases/Windows/global_const_string.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/global_const_string_oob.cc b/compiler-rt/test/asan/TestCases/Windows/global_const_string_oob.cc index b39e3dbb3b4..f31190f7d79 100644 --- a/compiler-rt/test/asan/TestCases/Windows/global_const_string_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/global_const_string_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/heapalloc.cc b/compiler-rt/test/asan/TestCases/Windows/heapalloc.cc index 30e70c39e9f..cb07b8fb0f2 100644 --- a/compiler-rt/test/asan/TestCases/Windows/heapalloc.cc +++ b/compiler-rt/test/asan/TestCases/Windows/heapalloc.cc @@ -1,5 +1,5 @@ // UNSUPPORTED: asan-64-bits -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %env_asan_opts=windows_hook_rtl_allocators=true not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/heapalloc_doublefree.cc b/compiler-rt/test/asan/TestCases/Windows/heapalloc_doublefree.cc index 9ad5ecccc58..3394a9233b6 100644 --- a/compiler-rt/test/asan/TestCases/Windows/heapalloc_doublefree.cc +++ b/compiler-rt/test/asan/TestCases/Windows/heapalloc_doublefree.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %env_asan_opts=windows_hook_rtl_allocators=true not %run %t 2>&1 | FileCheck %s // UNSUPPORTED: asan-64-bits #include <cassert> @@ -13,4 +13,4 @@ int main() { return 0; } -// CHECK: AddressSanitizer: attempting double-free on [[addr:0x[0-9a-fA-F]+]] in thread T0:
\ No newline at end of file +// CHECK: AddressSanitizer: attempting double-free on [[addr:0x[0-9a-fA-F]+]] in thread T0: diff --git a/compiler-rt/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc b/compiler-rt/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc index d118e2df703..e040fd58199 100644 --- a/compiler-rt/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc +++ b/compiler-rt/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t 2>&1 | FileCheck %s // RUN: %env_asan_opts=windows_hook_rtl_allocators=true %run %t 2>&1 | FileCheck %s // UNSUPPORTED: asan-64-bits diff --git a/compiler-rt/test/asan/TestCases/Windows/heapalloc_huge.cc b/compiler-rt/test/asan/TestCases/Windows/heapalloc_huge.cc index 3c0feff691c..3a6ce7854eb 100644 --- a/compiler-rt/test/asan/TestCases/Windows/heapalloc_huge.cc +++ b/compiler-rt/test/asan/TestCases/Windows/heapalloc_huge.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %env_asan_opts=allocator_may_return_null=true %run %t // RUN: %env_asan_opts=allocator_may_return_null=true:windows_hook_rtl_allocators=true %run %t // UNSUPPORTED: asan-64-bits @@ -6,4 +6,4 @@ int main() { void *nope = HeapAlloc(GetProcessHeap(), 0, ((size_t)0) - 1); return (nope == nullptr) ? 0 : 1; -}
\ No newline at end of file +} diff --git a/compiler-rt/test/asan/TestCases/Windows/heapalloc_sanity.cc b/compiler-rt/test/asan/TestCases/Windows/heapalloc_sanity.cc index 5dfc14b7263..a2ee68621a9 100644 --- a/compiler-rt/test/asan/TestCases/Windows/heapalloc_sanity.cc +++ b/compiler-rt/test/asan/TestCases/Windows/heapalloc_sanity.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t 2>&1 | FileCheck %s #include <stdio.h> #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/heapalloc_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/heapalloc_uaf.cc index 9aee5bbda61..e0f1f865741 100644 --- a/compiler-rt/test/asan/TestCases/Windows/heapalloc_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/heapalloc_uaf.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %env_asan_opts=windows_hook_rtl_allocators=true not %run %t 2>&1 | FileCheck %s // UNSUPPORTED: asan-64-bits #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/heaprealloc.cc b/compiler-rt/test/asan/TestCases/Windows/heaprealloc.cc index 21589cf8385..add644c05e7 100644 --- a/compiler-rt/test/asan/TestCases/Windows/heaprealloc.cc +++ b/compiler-rt/test/asan/TestCases/Windows/heaprealloc.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %env_asan_opts=windows_hook_rtl_allocators=true not %run %t 2>&1 | FileCheck %s // UNSUPPORTED: asan-64-bits #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/hello_world.cc b/compiler-rt/test/asan/TestCases/Windows/hello_world.cc index 400ca1b3eac..0caeb35554c 100644 --- a/compiler-rt/test/asan/TestCases/Windows/hello_world.cc +++ b/compiler-rt/test/asan/TestCases/Windows/hello_world.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/intercept_memcpy.cc b/compiler-rt/test/asan/TestCases/Windows/intercept_memcpy.cc index d71333d0b77..846c6d8b37d 100644 --- a/compiler-rt/test/asan/TestCases/Windows/intercept_memcpy.cc +++ b/compiler-rt/test/asan/TestCases/Windows/intercept_memcpy.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/intercept_strdup.cc b/compiler-rt/test/asan/TestCases/Windows/intercept_strdup.cc index 95b659ffd33..2bef08d68ad 100644 --- a/compiler-rt/test/asan/TestCases/Windows/intercept_strdup.cc +++ b/compiler-rt/test/asan/TestCases/Windows/intercept_strdup.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/intercept_strlen.cc b/compiler-rt/test/asan/TestCases/Windows/intercept_strlen.cc index 938e6c9b5ba..217aab2decf 100644 --- a/compiler-rt/test/asan/TestCases/Windows/intercept_strlen.cc +++ b/compiler-rt/test/asan/TestCases/Windows/intercept_strlen.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/interface_symbols_windows.cc b/compiler-rt/test/asan/TestCases/Windows/interface_symbols_windows.cc index 4a59dba25b0..1738b87e80d 100644 --- a/compiler-rt/test/asan/TestCases/Windows/interface_symbols_windows.cc +++ b/compiler-rt/test/asan/TestCases/Windows/interface_symbols_windows.cc @@ -2,7 +2,7 @@ // functions mentioned in sanitizer_interface.inc. // // Just make sure we can compile this. -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // // note: The mangling decoration (i.e. @4 )is removed because calling convention // differ from 32-bit and 64-bit. diff --git a/compiler-rt/test/asan/TestCases/Windows/iostream_sbo.cc b/compiler-rt/test/asan/TestCases/Windows/iostream_sbo.cc index ffcd53013ec..46f452a3252 100644 --- a/compiler-rt/test/asan/TestCases/Windows/iostream_sbo.cc +++ b/compiler-rt/test/asan/TestCases/Windows/iostream_sbo.cc @@ -1,9 +1,9 @@ // First, check this works with the default blacklist: -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: echo "42" | %run %t 2>&1 | FileCheck %s // // Then, make sure it still works when a user uses his own blacklist file: -// RUN: %clang_cl_asan -O0 %s -fsanitize-blacklist=%p/../Helpers/initialization-blacklist.txt -Fe%t2 +// RUN: %clang_cl_asan -Od %s -fsanitize-blacklist=%p/../Helpers/initialization-blacklist.txt -Fe%t2 // RUN: echo "42" | %run %t2 2>&1 | FileCheck %s #include <iostream> diff --git a/compiler-rt/test/asan/TestCases/Windows/malloc_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/malloc_left_oob.cc index ec133c393da..131dff2effc 100644 --- a/compiler-rt/test/asan/TestCases/Windows/malloc_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/malloc_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/malloc_right_oob.cc b/compiler-rt/test/asan/TestCases/Windows/malloc_right_oob.cc index 9975316d3e0..4fef3065c69 100644 --- a/compiler-rt/test/asan/TestCases/Windows/malloc_right_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/malloc_right_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/malloc_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/malloc_uaf.cc index f58478947bf..5385a5c3c25 100644 --- a/compiler-rt/test/asan/TestCases/Windows/malloc_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/malloc_uaf.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc b/compiler-rt/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc index 62fe544ae54..281dffa4f79 100644 --- a/compiler-rt/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc +++ b/compiler-rt/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc @@ -2,9 +2,9 @@ // variables, thus doesn't explicitly reference any symbol exported by the // runtime thunk. // -// RUN: %clang_cl_asan -LD -O0 -DDLL1 %s -Fe%t1.dll -// RUN: %clang_cl_asan -LD -O0 -DDLL2 %s -Fe%t2.dll -// RUN: %clang_cl_asan -O0 -DEXE %s %t1.lib %t2.lib -Fe%t +// RUN: %clang_cl_asan -LD -Od -DDLL1 %s -Fe%t1.dll +// RUN: %clang_cl_asan -LD -Od -DDLL2 %s -Fe%t2.dll +// RUN: %clang_cl_asan -Od -DEXE %s %t1.lib %t2.lib -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/oom.cc b/compiler-rt/test/asan/TestCases/Windows/oom.cc index 4d68c145eca..bf19aa09cad 100644 --- a/compiler-rt/test/asan/TestCases/Windows/oom.cc +++ b/compiler-rt/test/asan/TestCases/Windows/oom.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s // REQUIRES: asan-32-bits diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_left_oob.cc index 20a0f1927e5..fec8e15b786 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s int main() { diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_right_oob.cc b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_right_oob.cc index 23775ef6066..51c910a2f66 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_right_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_right_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_uaf.cc index b638ef1df41..e6bc1ac1c99 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_uaf.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc index aae9d5ec82b..e91d05ea78c 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s struct C { diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc b/compiler-rt/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc index 46875920c4c..d82bf588e2a 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_new_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/operator_new_left_oob.cc index a12db9b1e21..2a0fb70e485 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_new_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_new_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_new_right_oob.cc b/compiler-rt/test/asan/TestCases/Windows/operator_new_right_oob.cc index 7edee549554..9ff08d33c10 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_new_right_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_new_right_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/operator_new_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/operator_new_uaf.cc index 9d5a4078d07..e1453727d47 100644 --- a/compiler-rt/test/asan/TestCases/Windows/operator_new_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/operator_new_uaf.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/queue_user_work_item_report.cc b/compiler-rt/test/asan/TestCases/Windows/queue_user_work_item_report.cc index 27c438a56b2..9de3d925ffe 100644 --- a/compiler-rt/test/asan/TestCases/Windows/queue_user_work_item_report.cc +++ b/compiler-rt/test/asan/TestCases/Windows/queue_user_work_item_report.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/realloc_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/realloc_left_oob.cc index 7d30e1d5c4a..376214e34ed 100644 --- a/compiler-rt/test/asan/TestCases/Windows/realloc_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/realloc_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/realloc_right_oob.cc b/compiler-rt/test/asan/TestCases/Windows/realloc_right_oob.cc index f741390bd4e..57934e47857 100644 --- a/compiler-rt/test/asan/TestCases/Windows/realloc_right_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/realloc_right_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/realloc_uaf.cc b/compiler-rt/test/asan/TestCases/Windows/realloc_uaf.cc index c5b6953cf76..8e318736b7a 100644 --- a/compiler-rt/test/asan/TestCases/Windows/realloc_uaf.cc +++ b/compiler-rt/test/asan/TestCases/Windows/realloc_uaf.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/report_globals_reload_dll.cc b/compiler-rt/test/asan/TestCases/Windows/report_globals_reload_dll.cc index 4adbcc3b529..eb6d4bc39d5 100644 --- a/compiler-rt/test/asan/TestCases/Windows/report_globals_reload_dll.cc +++ b/compiler-rt/test/asan/TestCases/Windows/report_globals_reload_dll.cc @@ -1,6 +1,6 @@ // Make sure we can handle reloading the same DLL multiple times. -// RUN: %clang_cl_asan -LD -O0 -DDLL %s -Fe%t.dll -// RUN: %clang_cl_asan -O0 -DEXE %s -Fe%te.exe +// RUN: %clang_cl_asan -LD -Od -DDLL %s -Fe%t.dll +// RUN: %clang_cl_asan -Od -DEXE %s -Fe%te.exe // RUN: %env_asan_opts=report_globals=1 %run %te.exe %t.dll 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc b/compiler-rt/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc index 94b97f58f28..9619aff6a74 100644 --- a/compiler-rt/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc +++ b/compiler-rt/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc @@ -1,5 +1,5 @@ -// RUN: %clang_cl_asan -LD -O0 -DDLL %s -Fe%t.dll -// RUN: %clang_cl_asan -O0 -DEXE %s -Fe%te.exe +// RUN: %clang_cl_asan -LD -Od -DDLL %s -Fe%t.dll +// RUN: %clang_cl_asan -Od -DEXE %s -Fe%te.exe // RUN: %env_asan_opts=report_globals=2 %run %te.exe %t.dll 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap.cc b/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap.cc index 27738e9d5ed..6ef1caa0ec2 100644 --- a/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap.cc +++ b/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t /MD +// RUN: %clang_cl_asan -Od %s -Fe%t /MD // RUN: %env_asan_opts=windows_hook_rtl_allocators=true not %run %t 2>&1 | FileCheck %s // UNSUPPORTED: asan-64-bits // REQUIRES: asan-rtl-heap-interception diff --git a/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc b/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc index 738bf0fa774..d7e81ac3a0f 100644 --- a/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc +++ b/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t /MD +// RUN: %clang_cl_asan -Od %s -Fe%t /MD // RUN: %env_asan_opts=windows_hook_rtl_allocators=true %run %t 2>&1 | FileCheck %s // UNSUPPORTED: asan-64-bits // REQUIRES: asan-rtl-heap-interception diff --git a/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_zero.cc b/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_zero.cc index ef372a1761a..92d2940a51e 100644 --- a/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_zero.cc +++ b/compiler-rt/test/asan/TestCases/Windows/rtlallocateheap_zero.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t /MD +// RUN: %clang_cl_asan -Od %s -Fe%t /MD // RUN: %env_asan_opts=windows_hook_rtl_allocators=true not %run %t 2>&1 | FileCheck %s // UNSUPPORTED: asan-64-bits // REQUIRES: asan-rtl-heap-interception diff --git a/compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cc b/compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cc index 510f169401d..c774689941b 100644 --- a/compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cc +++ b/compiler-rt/test/asan/TestCases/Windows/shadow_mapping_failure.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s // REQUIRES: asan-32-bits diff --git a/compiler-rt/test/asan/TestCases/Windows/stack_array_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/stack_array_left_oob.cc index 8d601fc8d42..ea7119b4c81 100644 --- a/compiler-rt/test/asan/TestCases/Windows/stack_array_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/stack_array_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/stack_array_right_oob.cc b/compiler-rt/test/asan/TestCases/Windows/stack_array_right_oob.cc index 721834d1ad2..bbcb96f8fc7 100644 --- a/compiler-rt/test/asan/TestCases/Windows/stack_array_right_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/stack_array_right_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/stack_array_sanity.cc b/compiler-rt/test/asan/TestCases/Windows/stack_array_sanity.cc index 1aef1a923d2..156e9f86fc3 100644 --- a/compiler-rt/test/asan/TestCases/Windows/stack_array_sanity.cc +++ b/compiler-rt/test/asan/TestCases/Windows/stack_array_sanity.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t | FileCheck %s #include <stdio.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cc b/compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cc index ca1c142af21..4070bf628c8 100644 --- a/compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cc +++ b/compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %env_asan_opts=detect_stack_use_after_return=1 not %run %t 2>&1 | FileCheck %s char *x; diff --git a/compiler-rt/test/asan/TestCases/Windows/symbols_path.cc b/compiler-rt/test/asan/TestCases/Windows/symbols_path.cc index 81ead05c506..f121727613c 100644 --- a/compiler-rt/test/asan/TestCases/Windows/symbols_path.cc +++ b/compiler-rt/test/asan/TestCases/Windows/symbols_path.cc @@ -1,6 +1,6 @@ // Make sure symbolization works even if the path to the .exe file changes. // RUN: mkdir %t || true -// RUN: %clang_cl_asan -O0 %s -Fe%t/symbols_path.exe +// RUN: %clang_cl_asan -Od %s -Fe%t/symbols_path.exe // RUN: not %run %t/symbols_path.exe 2>&1 | FileCheck %s // RUN: mkdir %t2 || true // RUN: mv %t/* %t2 diff --git a/compiler-rt/test/asan/TestCases/Windows/thread_simple.cc b/compiler-rt/test/asan/TestCases/Windows/thread_simple.cc index 14bb82f042a..fd9ac4c289b 100644 --- a/compiler-rt/test/asan/TestCases/Windows/thread_simple.cc +++ b/compiler-rt/test/asan/TestCases/Windows/thread_simple.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc b/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc index aac9ecf248d..2280c10369d 100644 --- a/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc b/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc index 2982e48dc4f..939b984c53f 100644 --- a/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc +++ b/compiler-rt/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/thread_stack_reuse.cc b/compiler-rt/test/asan/TestCases/Windows/thread_stack_reuse.cc index 7da3a807dac..e7b12ca2a33 100644 --- a/compiler-rt/test/asan/TestCases/Windows/thread_stack_reuse.cc +++ b/compiler-rt/test/asan/TestCases/Windows/thread_stack_reuse.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/thread_stress.cc b/compiler-rt/test/asan/TestCases/Windows/thread_stress.cc index 74be8d88c66..e25cc6a3c2f 100644 --- a/compiler-rt/test/asan/TestCases/Windows/thread_stress.cc +++ b/compiler-rt/test/asan/TestCases/Windows/thread_stress.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/thread_suspended.cc b/compiler-rt/test/asan/TestCases/Windows/thread_suspended.cc index 47e4f9d5d19..b30cf148411 100644 --- a/compiler-rt/test/asan/TestCases/Windows/thread_suspended.cc +++ b/compiler-rt/test/asan/TestCases/Windows/thread_suspended.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t #include <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/use_after_realloc.cc b/compiler-rt/test/asan/TestCases/Windows/use_after_realloc.cc index 9d2c025258f..c39f4cf06ef 100644 --- a/compiler-rt/test/asan/TestCases/Windows/use_after_realloc.cc +++ b/compiler-rt/test/asan/TestCases/Windows/use_after_realloc.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <malloc.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/user-exception.cc b/compiler-rt/test/asan/TestCases/Windows/user-exception.cc index 4cff23fbc02..ba14a8b23ab 100644 --- a/compiler-rt/test/asan/TestCases/Windows/user-exception.cc +++ b/compiler-rt/test/asan/TestCases/Windows/user-exception.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: env ASAN_OPTIONS=handle_segv=0 %run %t 2>&1 | FileCheck %s --check-prefix=USER // RUN: env ASAN_OPTIONS=handle_segv=1 not %run %t 2>&1 | FileCheck %s --check-prefix=ASAN // Test the default. diff --git a/compiler-rt/test/asan/TestCases/Windows/windows_h.cc b/compiler-rt/test/asan/TestCases/Windows/windows_h.cc index 40cf5a10ad4..f20edec0cec 100644 --- a/compiler-rt/test/asan/TestCases/Windows/windows_h.cc +++ b/compiler-rt/test/asan/TestCases/Windows/windows_h.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: %run %t // Just make sure we can parse <windows.h> diff --git a/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc b/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc index 112dd5308d1..a703d178dd1 100644 --- a/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc +++ b/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s class Parent { diff --git a/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc b/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc index 7848cf3be92..5e28eb63909 100644 --- a/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc +++ b/compiler-rt/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc @@ -1,4 +1,4 @@ -// RUN: %clang_cl_asan -O0 %s -Fe%t +// RUN: %clang_cl_asan -Od %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s class Parent { |