diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asan/asan_interface_internal.h | 2 | ||||
-rw-r--r-- | lib/asan/asan_internal.h | 4 | ||||
-rw-r--r-- | lib/asan/asan_rtl.cc | 4 | ||||
-rw-r--r-- | lib/asan/asan_thread.cc | 2 | ||||
-rw-r--r-- | lib/builtins/adddf3.c | 2 | ||||
-rw-r--r-- | lib/builtins/addsf3.c | 2 | ||||
-rw-r--r-- | lib/builtins/arm/comparesf2.S | 2 | ||||
-rw-r--r-- | lib/builtins/comparedf2.c | 2 | ||||
-rw-r--r-- | lib/builtins/comparesf2.c | 2 | ||||
-rw-r--r-- | lib/builtins/comparetf2.c | 2 | ||||
-rw-r--r-- | lib/builtins/divdf3.c | 2 | ||||
-rw-r--r-- | lib/builtins/ppc/fixtfdi.c | 2 | ||||
-rw-r--r-- | lib/profile/InstrProfilingPlatformOther.c | 2 | ||||
-rw-r--r-- | lib/sanitizer_common/sanitizer_addrhashmap.h | 2 | ||||
-rw-r--r-- | lib/sanitizer_common/sanitizer_tls_get_addr.h | 2 | ||||
-rwxr-xr-x | lib/sanitizer_common/scripts/cpplint.py | 4 | ||||
-rw-r--r-- | lib/tsan/rtl/tsan_flags.h | 4 | ||||
-rw-r--r-- | lib/tsan/rtl/tsan_interface_atomic.cc | 2 | ||||
-rw-r--r-- | lib/tsan/tests/rtl/tsan_test_util.h | 2 |
19 files changed, 23 insertions, 23 deletions
diff --git a/lib/asan/asan_interface_internal.h b/lib/asan/asan_interface_internal.h index 7f5ebffbe..84525d090 100644 --- a/lib/asan/asan_interface_internal.h +++ b/lib/asan/asan_interface_internal.h @@ -22,7 +22,7 @@ using __sanitizer::uptr; extern "C" { // This function should be called at the very beginning of the process, // before any instrumented code is executed and before any call to malloc. - // Everytime the asan ABI changes we also change the version number in this + // Every time the asan ABI changes we also change the version number in this // name. Objects build with incompatible asan ABI version // will not link with run-time. // Changes between ABI versions: diff --git a/lib/asan/asan_internal.h b/lib/asan/asan_internal.h index 12e68e328..650a4d10c 100644 --- a/lib/asan/asan_internal.h +++ b/lib/asan/asan_internal.h @@ -59,7 +59,7 @@ // All internal functions in asan reside inside the __asan namespace // to avoid namespace collisions with the user programs. -// Seperate namespace also makes it simpler to distinguish the asan run-time +// Separate namespace also makes it simpler to distinguish the asan run-time // functions from the instrumented user code in a profile. namespace __asan { @@ -98,7 +98,7 @@ void AppendToErrorMessageBuffer(const char *buffer); void ParseExtraActivationFlags(); -// Platfrom-specific options. +// Platform-specific options. #if SANITIZER_MAC bool PlatformHasDifferentMemcpyAndMemmove(); # define PLATFORM_HAS_DIFFERENT_MEMCPY_AND_MEMMOVE \ diff --git a/lib/asan/asan_rtl.cc b/lib/asan/asan_rtl.cc index d349ae1bf..3e21c87c5 100644 --- a/lib/asan/asan_rtl.cc +++ b/lib/asan/asan_rtl.cc @@ -80,7 +80,7 @@ static const char *MaybeCallAsanDefaultOptions() { return (&__asan_default_options) ? __asan_default_options() : ""; } -static const char *MaybeUseAsanDefaultOptionsCompileDefiniton() { +static const char *MaybeUseAsanDefaultOptionsCompileDefinition() { #ifdef ASAN_DEFAULT_OPTIONS // Stringize the macro value. # define ASAN_STRINGIZE(x) #x @@ -281,7 +281,7 @@ void InitializeFlags(Flags *f, const char *env) { f->detect_container_overflow = true; // Override from compile definition. - ParseFlagsFromString(f, MaybeUseAsanDefaultOptionsCompileDefiniton()); + ParseFlagsFromString(f, MaybeUseAsanDefaultOptionsCompileDefinition()); // Override from user-specified string. ParseFlagsFromString(f, MaybeCallAsanDefaultOptions()); diff --git a/lib/asan/asan_thread.cc b/lib/asan/asan_thread.cc index d4e098ac7..1d45573b8 100644 --- a/lib/asan/asan_thread.cc +++ b/lib/asan/asan_thread.cc @@ -123,7 +123,7 @@ FakeStack *AsanThread::AsyncSignalSafeLazyInitFakeStack() { // 1 -- being initialized // ptr -- initialized // This CAS checks if the state was 0 and if so changes it to state 1, - // if that was successfull, it initilizes the pointer. + // if that was successful, it initializes the pointer. if (atomic_compare_exchange_strong( reinterpret_cast<atomic_uintptr_t *>(&fake_stack_), &old_val, 1UL, memory_order_relaxed)) { diff --git a/lib/builtins/adddf3.c b/lib/builtins/adddf3.c index a55e82d21..7f196679d 100644 --- a/lib/builtins/adddf3.c +++ b/lib/builtins/adddf3.c @@ -101,7 +101,7 @@ __adddf3(fp_t a, fp_t b) { // If a == -b, return +zero. if (aSignificand == 0) return fromRep(0); - // If partial cancellation occured, we need to left-shift the result + // If partial cancellation occurred, we need to left-shift the result // and adjust the exponent: if (aSignificand < implicitBit << 3) { const int shift = rep_clz(aSignificand) - rep_clz(implicitBit << 3); diff --git a/lib/builtins/addsf3.c b/lib/builtins/addsf3.c index d528c8a72..446042ffc 100644 --- a/lib/builtins/addsf3.c +++ b/lib/builtins/addsf3.c @@ -101,7 +101,7 @@ __addsf3(fp_t a, fp_t b) { // If a == -b, return +zero. if (aSignificand == 0) return fromRep(0); - // If partial cancellation occured, we need to left-shift the result + // If partial cancellation occurred, we need to left-shift the result // and adjust the exponent: if (aSignificand < implicitBit << 3) { const int shift = rep_clz(aSignificand) - rep_clz(implicitBit << 3); diff --git a/lib/builtins/arm/comparesf2.S b/lib/builtins/arm/comparesf2.S index 09f72858b..cf71d36e0 100644 --- a/lib/builtins/arm/comparesf2.S +++ b/lib/builtins/arm/comparesf2.S @@ -107,7 +107,7 @@ DEFINE_COMPILERRT_FUNCTION_ALIAS(__nesf2, __eqsf2) .p2align 2 DEFINE_COMPILERRT_FUNCTION(__gtsf2) - // Identical to the preceeding except in that we return -1 for NaN values. + // Identical to the preceding except in that we return -1 for NaN values. // Given that the two paths share so much code, one might be tempted to // unify them; however, the extra code needed to do so makes the code size // to performance tradeoff very hard to justify for such small functions. diff --git a/lib/builtins/comparedf2.c b/lib/builtins/comparedf2.c index 877ed7d3a..64eea1249 100644 --- a/lib/builtins/comparedf2.c +++ b/lib/builtins/comparedf2.c @@ -117,7 +117,7 @@ __unorddf2(fp_t a, fp_t b) { return aAbs > infRep || bAbs > infRep; } -// The following are alternative names for the preceeding routines. +// The following are alternative names for the preceding routines. COMPILER_RT_ABI enum LE_RESULT __eqdf2(fp_t a, fp_t b) { diff --git a/lib/builtins/comparesf2.c b/lib/builtins/comparesf2.c index df1c45796..442289c10 100644 --- a/lib/builtins/comparesf2.c +++ b/lib/builtins/comparesf2.c @@ -117,7 +117,7 @@ __unordsf2(fp_t a, fp_t b) { return aAbs > infRep || bAbs > infRep; } -// The following are alternative names for the preceeding routines. +// The following are alternative names for the preceding routines. COMPILER_RT_ABI enum LE_RESULT __eqsf2(fp_t a, fp_t b) { diff --git a/lib/builtins/comparetf2.c b/lib/builtins/comparetf2.c index ed51fbae3..a6436de89 100644 --- a/lib/builtins/comparetf2.c +++ b/lib/builtins/comparetf2.c @@ -112,7 +112,7 @@ COMPILER_RT_ABI int __unordtf2(fp_t a, fp_t b) { return aAbs > infRep || bAbs > infRep; } -// The following are alternative names for the preceeding routines. +// The following are alternative names for the preceding routines. COMPILER_RT_ABI enum LE_RESULT __eqtf2(fp_t a, fp_t b) { return __letf2(a, b); diff --git a/lib/builtins/divdf3.c b/lib/builtins/divdf3.c index 70da630e9..ab44c2b25 100644 --- a/lib/builtins/divdf3.c +++ b/lib/builtins/divdf3.c @@ -98,7 +98,7 @@ __divdf3(fp_t a, fp_t b) { correction32 = -((uint64_t)recip32 * q31b >> 32); recip32 = (uint64_t)recip32 * correction32 >> 31; - // recip32 might have overflowed to exactly zero in the preceeding + // recip32 might have overflowed to exactly zero in the preceding // computation if the high word of b is exactly 1.0. This would sabotage // the full-width final stage of the computation that follows, so we adjust // recip32 downward by one bit. diff --git a/lib/builtins/ppc/fixtfdi.c b/lib/builtins/ppc/fixtfdi.c index 56e7b3fbf..2c7c0f8e2 100644 --- a/lib/builtins/ppc/fixtfdi.c +++ b/lib/builtins/ppc/fixtfdi.c @@ -25,7 +25,7 @@ uint64_t __fixtfdi(long double input) int64_t result = hibits.x & INT64_C(0x000fffffffffffff); /* mantissa(hi) */ result |= INT64_C(0x0010000000000000); /* matissa(hi) with implicit bit */ - result <<= 10; /* mantissa(hi) with one zero preceeding bit. */ + result <<= 10; /* mantissa(hi) with one zero preceding bit. */ const int64_t hiNegationMask = ((int64_t)(hibits.x)) >> 63; diff --git a/lib/profile/InstrProfilingPlatformOther.c b/lib/profile/InstrProfilingPlatformOther.c index e5a5fc54a..407ca0a7e 100644 --- a/lib/profile/InstrProfilingPlatformOther.c +++ b/lib/profile/InstrProfilingPlatformOther.c @@ -1,4 +1,4 @@ -/*===- InstrProfilingPlatformOther.c - Profile data default platfrom ------===*\ +/*===- InstrProfilingPlatformOther.c - Profile data default platform ------===*\ |* |* The LLVM Compiler Infrastructure |* diff --git a/lib/sanitizer_common/sanitizer_addrhashmap.h b/lib/sanitizer_common/sanitizer_addrhashmap.h index e09192643..acf4ff020 100644 --- a/lib/sanitizer_common/sanitizer_addrhashmap.h +++ b/lib/sanitizer_common/sanitizer_addrhashmap.h @@ -22,7 +22,7 @@ namespace __sanitizer { // Concurrent uptr->T hashmap. -// T must be a POD type, kSize is preferrably a prime but can be any number. +// T must be a POD type, kSize is preferably a prime but can be any number. // Usage example: // // typedef AddrHashMap<uptr, 11> Map; diff --git a/lib/sanitizer_common/sanitizer_tls_get_addr.h b/lib/sanitizer_common/sanitizer_tls_get_addr.h index 68ca827a2..a64f11e0b 100644 --- a/lib/sanitizer_common/sanitizer_tls_get_addr.h +++ b/lib/sanitizer_common/sanitizer_tls_get_addr.h @@ -43,7 +43,7 @@ struct DTLS { uptr dtv_size; DTV *dtv; // dtv_size elements, allocated by MmapOrDie. - // Auxilary fields, don't access them outside sanitizer_tls_get_addr.cc + // Auxiliary fields, don't access them outside sanitizer_tls_get_addr.cc uptr last_memalign_size; uptr last_memalign_ptr; }; diff --git a/lib/sanitizer_common/scripts/cpplint.py b/lib/sanitizer_common/scripts/cpplint.py index a8c9f6784..742459af1 100755 --- a/lib/sanitizer_common/scripts/cpplint.py +++ b/lib/sanitizer_common/scripts/cpplint.py @@ -3634,7 +3634,7 @@ def UpdateIncludeState(filename, include_state, io=codecs): io: The io factory to use to read the file. Provided for testability. Returns: - True if a header was succesfully added. False otherwise. + True if a header was successfully added. False otherwise. """ headerfile = None try: @@ -3706,7 +3706,7 @@ def CheckForIncludeWhatYouUse(filename, clean_lines, include_state, error, # Let's copy the include_state so it is only messed up within this function. include_state = include_state.copy() - # Did we find the header for this file (if any) and succesfully load it? + # Did we find the header for this file (if any) and successfully load it? header_found = False # Use the absolute path so that matching works properly. diff --git a/lib/tsan/rtl/tsan_flags.h b/lib/tsan/rtl/tsan_flags.h index cd489d668..c6b4bbf16 100644 --- a/lib/tsan/rtl/tsan_flags.h +++ b/lib/tsan/rtl/tsan_flags.h @@ -22,10 +22,10 @@ namespace __tsan { struct Flags : CommonFlags, DDFlags { // Enable dynamic annotations, otherwise they are no-ops. bool enable_annotations; - // Supress a race report if we've already output another race report + // Suppress a race report if we've already output another race report // with the same stack. bool suppress_equal_stacks; - // Supress a race report if we've already output another race report + // Suppress a race report if we've already output another race report // on the same address. bool suppress_equal_addresses; // Suppress weird race reports that can be seen if JVM is embed diff --git a/lib/tsan/rtl/tsan_interface_atomic.cc b/lib/tsan/rtl/tsan_interface_atomic.cc index c3129b858..5472b2bdf 100644 --- a/lib/tsan/rtl/tsan_interface_atomic.cc +++ b/lib/tsan/rtl/tsan_interface_atomic.cc @@ -12,7 +12,7 @@ //===----------------------------------------------------------------------===// // ThreadSanitizer atomic operations are based on C++11/C1x standards. -// For background see C++11 standard. A slightly older, publically +// For background see C++11 standard. A slightly older, publicly // available draft of the standard (not entirely up-to-date, but close enough // for casual browsing) is available here: // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf diff --git a/lib/tsan/tests/rtl/tsan_test_util.h b/lib/tsan/tests/rtl/tsan_test_util.h index 483a564c8..84d277b13 100644 --- a/lib/tsan/tests/rtl/tsan_test_util.h +++ b/lib/tsan/tests/rtl/tsan_test_util.h @@ -37,7 +37,7 @@ class Mutex { ~Mutex(); void Init(); - void StaticInit(); // Emulates static initalization (tsan invisible). + void StaticInit(); // Emulates static initialization (tsan invisible). void Destroy(); void Lock(); bool TryLock(); |