OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef BASE_COMPILER_SPECIFIC_H_ | 5 #ifndef BASE_COMPILER_SPECIFIC_H_ |
6 #define BASE_COMPILER_SPECIFIC_H_ | 6 #define BASE_COMPILER_SPECIFIC_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(COMPILER_MSVC) | 10 #if defined(COMPILER_MSVC) |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 #define PRINTF_FORMAT(format_param, dots_param) | 159 #define PRINTF_FORMAT(format_param, dots_param) |
160 #endif | 160 #endif |
161 | 161 |
162 // WPRINTF_FORMAT is the same, but for wide format strings. | 162 // WPRINTF_FORMAT is the same, but for wide format strings. |
163 // This doesn't appear to yet be implemented in any compiler. | 163 // This doesn't appear to yet be implemented in any compiler. |
164 // See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308 . | 164 // See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38308 . |
165 #define WPRINTF_FORMAT(format_param, dots_param) | 165 #define WPRINTF_FORMAT(format_param, dots_param) |
166 // If available, it would look like: | 166 // If available, it would look like: |
167 // __attribute__((format(wprintf, format_param, dots_param))) | 167 // __attribute__((format(wprintf, format_param, dots_param))) |
168 | 168 |
169 #ifdef MEMORY_SANITIZER | |
Alexander Potapenko
2013/03/20 11:19:43
Please add comments describing what shall into thi
| |
170 extern "C" { | |
171 void __msan_unpoison(const void *p, unsigned long s); | |
172 void __msan_print_shadow(const void *p, unsigned long s); | |
173 } | |
174 #else // MEMORY_SANITIZER | |
175 #define __msan_unpoison(p, s) | |
176 #define __msan_print_shadow(p, s) | |
177 #endif // MEMORY_SANITIZER | |
178 | |
169 #endif // BASE_COMPILER_SPECIFIC_H_ | 179 #endif // BASE_COMPILER_SPECIFIC_H_ |
OLD | NEW |