Split out LOCAL_ASFLAGS.

Bug: 6967574
Change-Id: I545540baee98b826c4cd802871f3f8995ceaddc9
am 57cdbbc3: Merge with compiler-rt upstream r159129.

* commit '57cdbbc3ec7ac5ec4a467d48b42226d674aebbf7': (218 commits)
  Another big step toward a viable CMake build system for CompilerRT, ASan, and friends.
  Lots of trivial changes to remove extraneous semicolons throughout ASan.
  [tsan] a better CHECK for OOM in the new allocator
  [asan] fix -Wsign-compare
  Mechanical change to sink a #ifdef guard for a platform below the include of int_lib.h.
  Remove extraneous semicolons outside of functions. This fixes a large number of -pedantic warnings.
  Reorder these things for clarity, and add -std=c99 to the compile flags.
  Disable the test subdirectory entirely until we get fresh CMake files there. I didn't notice this because I had a stub that wasn't checked in floating around in my client.
  [tsan] add metadata to the new tsan allocator
  Allow divsi3 to take advantage of a hardware unsigned divide when it is available, by replacing an explicit call to udivsi3 with the divide operator.  Patch by Sébastien Bourdeauducq.
  [tsan] more code for a specialized tsan allocator
  tsan: do not call malloc/free in memory access handling routine. This improves signal-/fork-safety of instrumented programs.
  Small lint fix.
  Add a test for issue 81 -- AddressSanitizerMac.DISABLED_CFAllocatorDefaultDoubleFree_ChildPhread
  [tsan] first step in implementing a custom allocator for tsan (and msan) which saves precious shadow
  [ASan] fix lint error
  Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine.
  Factor the common code out of cf_free and mz_free. Introduce the mac_ignore_invalid_free flag (0 by default) which makes both cf_free and mz_free ignore invalid free invocations and leak memory.
  Fix the output tests on Darwin
  Actually intercept free() to ensure that the deallocations caused by other functions directly calling it are routed to our allocator. For the allocations that do not belong to any malloc zone check whether they're padded with a pointer to ASan's CFAllocator. If so, free the original (unpadded) pointer. This should fix AddressSanitizerMac.NSURLDeallocation and issue 70.
  ...
am 51584046: Apply changes to migrate to compiler-rt upstream.

* commit '51584046b5a19fcc3ef47a0ade2e88b58ded7e81':
  Apply changes to migrate to compiler-rt upstream.
am e34de791: Update README.android.

* commit 'e34de791db1e32f0e228a4c82d4a28cce79b0a79':
  Update README.android.
am 30f5a4f2: Built already for sanitizer_common.

* commit '30f5a4f2ea0ed854299808a99b9dfbe332ad456e':
  Built already for sanitizer_common.
am ad3e3f97: enable libcompiler-rt build for mips

* commit 'ad3e3f97fdfe365f9972bc71e3bd535c94a29abe':
  enable libcompiler-rt build for mips
am 58948471: Merge branch \'upstream\' into merge_2

* commit '58948471cbd30eca1336a27687093f08b7f44bdd': (208 commits)
  [asan] fix mac build
  [asan] run-time part of the initialization order checker. Patch by Reid Watson with some bits from kcc. The sub-pass is off by default for now. On simple tests it works fine.
  [Sanitizer] implement internal_strcspn
  [asan] update asan-rt to match the interface change in LLVm (r162268)
  [Sanitizer] define InternalScopedBuffer to replace large arrays on stack. It is defined analogous to similar class in tsan and should replace it.
  [asan] fix lint
  Dynamic interceptors for dispatch_async and dispatch_after.
  Minor refactoring: reduce code duplication by introducing a macro for dispatch_sync_f, dispatch_async_f, dispatch_barrier_async_f bodies.
  Fix a leftover #if defined(DYNAMIC_MAC_WRAPPERS).
  tsan: proper handling of linker initialized mutexes
  tsan: Non-executable stack for hand-coded assembly
  Intercept siglongjmp and _longjmp under "#if ASAN_INTERCEPT_*"
  Fix lint warnings.
  Commit the source and CMake changes that will allow to build ASan runtime as a shared library on Mac OS. This will provide an alternative to mach_override.
  tsan: improve Go report format + fix build
  tsan: add flag to disable reporting of destruction of locked mutexes (some programs use that on a regular basis)
  tsan: better diagnostics for destroy of a locked mutex + a test
  tsan: support for linker initializer mutexes with static storage duration
  tsan: fix COMPAT shadow mapping once again
  tsan: implement RWLOCK annotations
  ...
am 6490f0d0: Fix up compiler-rt for upstream merge to r162279.

* commit '6490f0d0b9a761083016aa469c9cce72b341b0a4':
  Fix up compiler-rt for upstream merge to r162279.
Revert r163411 based on review discussion.

In code review, it looked like these warnings do not actually fire with
modern Clang or GCC. However, the pragma is flat out rejected by GCC in
many configurations (-Werror) so it ended up causing more problems than
it fixed.

Daniel agreed with reverting this, but I think didn't have time to get
to it.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163583 91177308-0d34-0410-b5e6-96231b3b80d8
Interceptors for lockf and lockf64, minor calloc() fix.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163602 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Get rid of dependency between sanitizer_common and asan/tsan runtimes: implement tool-specific Die and CheckFailed functions via callbacks

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163603 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] remove custom Die/CheckFailed from allocator testlib

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163604 91177308-0d34-0410-b5e6-96231b3b80d8
[compiler-rt] Install support for CMake build of compiler-rt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163607 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] fix warnings reported by gcc. Update the list of targets to check lint for

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163608 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Add new lit testsuite: check-sanitizer that runs unit tests for sanitizer_common runtime (shared between ASan and TSan)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163610 91177308-0d34-0410-b5e6-96231b3b80d8
Fox a typo.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163611 91177308-0d34-0410-b5e6-96231b3b80d8
CMake build rules for ASan Android runtime and tests.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163613 91177308-0d34-0410-b5e6-96231b3b80d8
Revert the lockf() support. 


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163614 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] test 64-bit allocator only on suitable targets

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163615 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] get rid of empty DEFAULT_CONVENTION in interception lib to remove empty macro arguments

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163622 91177308-0d34-0410-b5e6-96231b3b80d8