Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: base/debug/sanitizer_options.cc

Issue 296173006: Link the contents of tools/valgrind/tsan_v2/suppressions.txt into TSan binaries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the 80-column limit Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/debug/OWNERS ('k') | base/debug/tsan_suppressions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains the default options for various compiler-based dynamic 5 // This file contains the default options for various compiler-based dynamic
6 // tools. 6 // tools.
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 // Functions returning default options are declared weak in the tools' runtime 10 // Functions returning default options are declared weak in the tools' runtime
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 extern "C" 87 extern "C"
88 __attribute__((no_sanitize_thread)) 88 __attribute__((no_sanitize_thread))
89 __attribute__((visibility("default"))) 89 __attribute__((visibility("default")))
90 // The function isn't referenced from the executable itself. Make sure it isn't 90 // The function isn't referenced from the executable itself. Make sure it isn't
91 // stripped by the linker. 91 // stripped by the linker.
92 __attribute__((used)) 92 __attribute__((used))
93 const char *__tsan_default_options() { 93 const char *__tsan_default_options() {
94 return kTsanDefaultOptions; 94 return kTsanDefaultOptions;
95 } 95 }
96 96
97 extern "C" char kTSanDefaultSuppressions[];
98
99 extern "C"
100 __attribute__((no_sanitize_thread))
101 __attribute__((visibility("default")))
102 // The function isn't referenced from the executable itself. Make sure it isn't
103 // stripped by the linker.
104 __attribute__((used))
105 const char *__tsan_default_suppressions() {
106 return kTSanDefaultSuppressions;
107 }
108
97 #endif // THREAD_SANITIZER && OS_LINUX 109 #endif // THREAD_SANITIZER && OS_LINUX
OLDNEW
« no previous file with comments | « base/debug/OWNERS ('k') | base/debug/tsan_suppressions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698