[PATCH] [ASan] Fix asan_preload_test-2 on PowerPC64 Linux

Jay Foad jay.foad at gmail.com
Wed Dec 24 02:36:41 PST 2014


Hi kcc, samsonov, garious, eugenis,

This test failed because clang compiled the call to memset() into a
single sth instruction, instead of a call. Adding -fno-builtin prevents
this.

http://reviews.llvm.org/D6776

Files:
  test/asan/TestCases/Linux/asan_preload_test-2.cc

Index: test/asan/TestCases/Linux/asan_preload_test-2.cc
===================================================================
--- test/asan/TestCases/Linux/asan_preload_test-2.cc
+++ test/asan/TestCases/Linux/asan_preload_test-2.cc
@@ -1,6 +1,6 @@
 // Test that preloaded runtime works with unsanitized executables.
 //
-// RUN: %clangxx %s -o %t
+// RUN: %clangxx %s -o %t -fno-builtin
 // RUN: LD_PRELOAD=%shared_libasan not %run %t 2>&1 | FileCheck %s
 
 // REQUIRES: asan-dynamic-runtime

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6776.17623.patch
Type: text/x-patch
Size: 490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141224/c4f822a8/attachment.bin>


More information about the llvm-commits mailing list