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

Side by Side Diff: build/sanitizers/sanitizer_options.cc

Issue 785393002: Revert "Roll Clang 218707:223109 (+r223211, +r223219, -r220714)" and follow-ups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | chrome/installer/linux/debian/expected_deps_x64 » ('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 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX) 10 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX)
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const char *kAsanDefaultOptions = 65 const char *kAsanDefaultOptions =
66 "strict_memcmp=0 symbolize=false check_printf=1 use_sigaltstack=1 " 66 "strict_memcmp=0 symbolize=false check_printf=1 use_sigaltstack=1 "
67 "detect_leaks=0 strip_path_prefix=Release/../../ fast_unwind_on_fatal=1 " 67 "detect_leaks=0 strip_path_prefix=Release/../../ fast_unwind_on_fatal=1 "
68 "detect_stack_use_after_return=1 "; 68 "detect_stack_use_after_return=1 ";
69 #endif // GOOGLE_CHROME_BUILD 69 #endif // GOOGLE_CHROME_BUILD
70 70
71 #elif defined(OS_MACOSX) 71 #elif defined(OS_MACOSX)
72 const char *kAsanDefaultOptions = 72 const char *kAsanDefaultOptions =
73 "strict_memcmp=0 replace_intrin=0 check_printf=1 use_sigaltstack=1 " 73 "strict_memcmp=0 replace_intrin=0 check_printf=1 use_sigaltstack=1 "
74 "strip_path_prefix=Release/../../ fast_unwind_on_fatal=1 " 74 "strip_path_prefix=Release/../../ fast_unwind_on_fatal=1 "
75 "detect_stack_use_after_return=1 detect_odr_violation=0 "; 75 "detect_stack_use_after_return=1 ";
76 static const char kNaClDefaultOptions[] = "handle_segv=0"; 76 static const char kNaClDefaultOptions[] = "handle_segv=0";
77 static const char kNaClFlag[] = "--type=nacl-loader"; 77 static const char kNaClFlag[] = "--type=nacl-loader";
78 #endif // OS_LINUX 78 #endif // OS_LINUX
79 79
80 #if defined(OS_LINUX) || defined(OS_MACOSX) 80 #if defined(OS_LINUX) || defined(OS_MACOSX)
81 extern "C" 81 extern "C"
82 __attribute__((no_sanitize_address)) 82 __attribute__((no_sanitize_address))
83 __attribute__((visibility("default"))) 83 __attribute__((visibility("default")))
84 // The function isn't referenced from the executable itself. Make sure it isn't 84 // The function isn't referenced from the executable itself. Make sure it isn't
85 // stripped by the linker. 85 // stripped by the linker.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 __attribute__((no_sanitize_thread)) 136 __attribute__((no_sanitize_thread))
137 __attribute__((visibility("default"))) 137 __attribute__((visibility("default")))
138 // The function isn't referenced from the executable itself. Make sure it isn't 138 // The function isn't referenced from the executable itself. Make sure it isn't
139 // stripped by the linker. 139 // stripped by the linker.
140 __attribute__((used)) 140 __attribute__((used))
141 const char *__tsan_default_suppressions() { 141 const char *__tsan_default_suppressions() {
142 return kTSanDefaultSuppressions; 142 return kTSanDefaultSuppressions;
143 } 143 }
144 144
145 #endif // THREAD_SANITIZER && OS_LINUX 145 #endif // THREAD_SANITIZER && OS_LINUX
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | chrome/installer/linux/debian/expected_deps_x64 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698