[compiler-rt] r236559 - [asan] Fix dynamic-runtime tests.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue May 5 17:29:58 PDT 2015


Author: eugenis
Date: Tue May  5 19:29:57 2015
New Revision: 236559

URL: http://llvm.org/viewvc/llvm-project?rev=236559&view=rev
Log:
[asan] Fix dynamic-runtime tests.

They are not part of check-all :(

This change adds sized-delete operators to the version list, and disables the
hack that excluded versioned symbols from the dynamic list - this is not an
issue in this case.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/scripts/gen_dynamic_list.py

Modified: compiler-rt/trunk/lib/sanitizer_common/scripts/gen_dynamic_list.py
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/scripts/gen_dynamic_list.py?rev=236559&r1=236558&r2=236559&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/scripts/gen_dynamic_list.py (original)
+++ compiler-rt/trunk/lib/sanitizer_common/scripts/gen_dynamic_list.py Tue May  5 19:29:57 2015
@@ -23,7 +23,8 @@ import sys
 new_delete = set(['_ZdaPv', '_ZdaPvRKSt9nothrow_t',
                   '_ZdlPv', '_ZdlPvRKSt9nothrow_t',
                   '_Znam', '_ZnamRKSt9nothrow_t',
-                  '_Znwm', '_ZnwmRKSt9nothrow_t'])
+                  '_Znwm', '_ZnwmRKSt9nothrow_t',
+                  '_ZdlPvm', '_ZdaPvm'])
 
 versioned_functions = set(['memcpy', 'pthread_attr_getaffinity_np',
                            'pthread_cond_broadcast',
@@ -74,7 +75,7 @@ def main(argv):
       # We have to avoid exporting the interceptors for versioned library
       # functions due to gold internal error.
       orig_name = match.group(1)
-      if orig_name in function_set and orig_name not in versioned_functions:
+      if orig_name in function_set and (args.version_list or orig_name not in versioned_functions):
         result.append(orig_name)
       continue
     # Export sanitizer interface functions.





More information about the llvm-commits mailing list