[compiler-rt] r301272 - [asan] Fix Windows global dead stripping tests

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 16:13:48 PDT 2017


Author: rnk
Date: Mon Apr 24 18:13:47 2017
New Revision: 301272

URL: http://llvm.org/viewvc/llvm-project?rev=301272&view=rev
Log:
[asan] Fix Windows global dead stripping tests

Pass /Gw to clang-cl which is equivalent to -fdata-sections. This is now
necessary.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_global_dead_strip.c
    compiler-rt/trunk/test/asan/TestCases/Windows/global_dead_strip.c

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=301272&r1=301271&r2=301272&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 Mon Apr 24 18:13:47 2017
@@ -1,8 +1,8 @@
 // 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 /Gw -LD -O0 %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 -LD -O2 %s -Fe%t.dll -link -opt:ref
+// 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
 
 #include <stdio.h>

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/global_dead_strip.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/global_dead_strip.c?rev=301272&r1=301271&r2=301272&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/global_dead_strip.c (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/global_dead_strip.c Mon Apr 24 18:13:47 2017
@@ -1,6 +1,6 @@
-// RUN: %clang_cl_asan /O0 %s /Fe%t.exe
+// RUN: %clang_cl_asan /Gw /O0 %s /Fe%t.exe
 // RUN: %env_asan_opts=report_globals=2 %t.exe 2>&1 | FileCheck %s --check-prefix=NOSTRIP
-// RUN: %clang_cl_asan /O2 %s /Fe%t.exe -link -opt:ref
+// RUN: %clang_cl_asan /Gw /O2 %s /Fe%t.exe -link -opt:ref
 // RUN: %env_asan_opts=report_globals=2 %t.exe 2>&1 | FileCheck %s --check-prefix=STRIP
 
 #include <stdio.h>




More information about the llvm-commits mailing list