[compiler-rt] r240855 - [asan] Disable -O1, -O2, -O3 in clang_gcc_abi.cc test.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Jun 26 16:40:27 PDT 2015


Author: eugenis
Date: Fri Jun 26 18:40:27 2015
New Revision: 240855

URL: http://llvm.org/viewvc/llvm-project?rev=240855&view=rev
Log:
[asan] Disable -O1,-O2,-O3 in clang_gcc_abi.cc test.

A workaround for PR23971.
Fixes the test on Android.

Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc?rev=240855&r1=240854&r2=240855&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/clang_gcc_abi.cc Fri Jun 26 18:40:27 2015
@@ -1,7 +1,8 @@
 // RUN: %clangxx_asan -O0 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O1 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O2 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_asan -O3 -x c %s -o %t && not %run %t 2>&1 | FileCheck %s
+
+// __attribute__((naked)) is broken at high optimization levels
+// Only testing -O0.
+// https://llvm.org/bugs/show_bug.cgi?id=23971
 
 // REQUIRES: arm-supported-target
 // XFAIL: armv7l-unknown-linux-gnueabihf





More information about the llvm-commits mailing list