[compiler-rt] r365724 - clang-cl: Remove -O0 option

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 18:18:05 PDT 2019


Author: nico
Date: Wed Jul 10 18:18:05 2019
New Revision: 365724

URL: http://llvm.org/viewvc/llvm-project?rev=365724&view=rev
Log:
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

Modified:
    compiler-rt/trunk/test/asan/TestCases/Windows/aligned_mallocs.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/allocators_sanity.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/beginthreadex.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/bitfield.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/bitfield_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/calloc_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/calloc_right_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/calloc_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/coverage-dll-stdio.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/crt_initializers.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/demangled_names.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_aligned_mallocs.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_allocators_sanity.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_cerr.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_control_c.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_global_dead_strip.c
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memchr.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memset.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_strlen.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_noreturn.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_null_deref.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_poison_unpoison.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_seh.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_stack_use_after_return.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/double_free.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/double_operator_delete.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_doublefree.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_huge.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_sanity.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/heaprealloc.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/hello_world.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/intercept_memcpy.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strdup.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strlen.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/interface_symbols_windows.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/iostream_sbo.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/malloc_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/malloc_right_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/malloc_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/oom.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_right_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_right_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/queue_user_work_item_report.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/realloc_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/realloc_right_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/realloc_uaf.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_reload_dll.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_zero.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/shadow_mapping_failure.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_right_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_sanity.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/stack_use_after_return.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/symbols_path.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/thread_simple.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_reuse.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/thread_stress.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/thread_suspended.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/use_after_realloc.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/windows_h.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc
    compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/aligned_mallocs.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/aligned_mallocs.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/aligned_mallocs.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/aligned_mallocs.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/allocators_sanity.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/allocators_sanity.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/allocators_sanity.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/allocators_sanity.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/beginthreadex.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/beginthreadex.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/beginthreadex.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/beginthreadex.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/bitfield.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/bitfield.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/bitfield.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/bitfield.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/bitfield_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/bitfield_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/bitfield_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/bitfield_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/calloc_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/calloc_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/calloc_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/calloc_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/calloc_right_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/calloc_right_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/calloc_right_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/calloc_right_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/calloc_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/calloc_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/calloc_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/calloc_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/coverage-dll-stdio.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/coverage-dll-stdio.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/coverage-dll-stdio.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/coverage-dll-stdio.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/crt_initializers.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/crt_initializers.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/crt_initializers.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/crt_initializers.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/demangled_names.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/demangled_names.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/demangled_names.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/demangled_names.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_aligned_mallocs.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_aligned_mallocs.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_aligned_mallocs.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_aligned_mallocs.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_allocators_sanity.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_allocators_sanity.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_allocators_sanity.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_allocators_sanity.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_cerr.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_cerr.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_cerr.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_cerr.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_control_c.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_control_c.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_control_c.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_control_c.cc Wed Jul 10 18:18:05 2019
@@ -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
 

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_global_dead_strip.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_global_dead_strip.c?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_global_dead_strip.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_global_dead_strip.c Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memchr.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memchr.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memchr.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memchr.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memset.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memset.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memset.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_memset.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_strlen.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_strlen.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_strlen.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_intercept_strlen.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_malloc_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_noreturn.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_noreturn.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_noreturn.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_noreturn.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_null_deref.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_null_deref.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_null_deref.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_null_deref.cc Wed Jul 10 18:18:05 2019
@@ -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))

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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)

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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 {

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_poison_unpoison.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_poison_unpoison.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_poison_unpoison.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_poison_unpoison.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_seh.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_seh.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_seh.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_seh.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_stack_use_after_return.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_stack_use_after_return.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_stack_use_after_return.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_stack_use_after_return.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/double_free.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/double_free.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/double_free.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/double_free.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/double_operator_delete.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/double_operator_delete.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/double_operator_delete.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/double_operator_delete.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/global_const_string_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_doublefree.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_doublefree.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_doublefree.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_doublefree.cc Wed Jul 10 18:18:05 2019
@@ -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:

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_flags_fallback.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_huge.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_huge.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_huge.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_huge.cc Wed Jul 10 18:18:05 2019
@@ -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
+}

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_sanity.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_sanity.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_sanity.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_sanity.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/heapalloc_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/heaprealloc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/heaprealloc.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/heaprealloc.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/heaprealloc.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/hello_world.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/hello_world.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/hello_world.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/hello_world.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/intercept_memcpy.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/intercept_memcpy.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/intercept_memcpy.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/intercept_memcpy.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strdup.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strdup.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strdup.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strdup.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strlen.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strlen.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strlen.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/intercept_strlen.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/interface_symbols_windows.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/interface_symbols_windows.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/interface_symbols_windows.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/interface_symbols_windows.cc Wed Jul 10 18:18:05 2019
@@ -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.

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/iostream_sbo.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/iostream_sbo.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/iostream_sbo.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/iostream_sbo.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/malloc_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/malloc_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/malloc_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/malloc_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/malloc_right_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/malloc_right_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/malloc_right_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/malloc_right_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/malloc_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/malloc_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/malloc_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/malloc_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/null_deref_multiple_dlls.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/oom.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/oom.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/oom.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/oom.cc Wed Jul 10 18:18:05 2019
@@ -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
 

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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() {

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_right_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_right_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_right_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_right_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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 {

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_delete_wrong_argument.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_right_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_right_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_right_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_right_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/operator_new_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/queue_user_work_item_report.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/queue_user_work_item_report.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/queue_user_work_item_report.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/queue_user_work_item_report.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/realloc_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/realloc_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/realloc_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/realloc_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/realloc_right_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/realloc_right_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/realloc_right_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/realloc_right_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/realloc_uaf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/realloc_uaf.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/realloc_uaf.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/realloc_uaf.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_reload_dll.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_reload_dll.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_reload_dll.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_reload_dll.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_flags_fallback.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_zero.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_zero.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_zero.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/rtlallocateheap_zero.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/shadow_mapping_failure.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/shadow_mapping_failure.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/shadow_mapping_failure.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/shadow_mapping_failure.cc Wed Jul 10 18:18:05 2019
@@ -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
 

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_right_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_right_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_right_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_right_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_sanity.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_sanity.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_sanity.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/stack_array_sanity.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/stack_use_after_return.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/stack_use_after_return.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/stack_use_after_return.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/stack_use_after_return.cc Wed Jul 10 18:18:05 2019
@@ -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;

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/symbols_path.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/symbols_path.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/symbols_path.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/symbols_path.cc Wed Jul 10 18:18:05 2019
@@ -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

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/thread_simple.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/thread_simple.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/thread_simple.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/thread_simple.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_left_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_array_right_oob.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_reuse.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_reuse.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_reuse.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/thread_stack_reuse.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/thread_stress.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/thread_stress.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/thread_stress.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/thread_stress.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/thread_suspended.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/thread_suspended.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/thread_suspended.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/thread_suspended.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/use_after_realloc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/use_after_realloc.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/use_after_realloc.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/use_after_realloc.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc Wed Jul 10 18:18:05 2019
@@ -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.

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/windows_h.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/windows_h.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/windows_h.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/windows_h.cc Wed Jul 10 18:18:05 2019
@@ -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>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_heap.cc Wed Jul 10 18:18:05 2019
@@ -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 {

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc?rev=365724&r1=365723&r2=365724&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/wrong_downcast_on_stack.cc Wed Jul 10 18:18:05 2019
@@ -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 {




More information about the llvm-commits mailing list