| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Patch by Tee Hao Wei!
llvm-svn: 249948
|
| |
|
|
| |
llvm-svn: 249914
|
| |
|
|
|
|
| |
Xcode distribution.
llvm-svn: 249912
|
| |
|
|
| |
llvm-svn: 249888
|
| |
|
|
|
|
|
|
|
|
| |
CMake build rules listed -I flags for two different libc++ header
locations which broke when libc++ headers started using include_next.
Also change -I to -isystem to avoid compiler warning about
include_next.
llvm-svn: 249759
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is an implementation of
https://github.com/google/sanitizers/issues/579
It has a number of advantages over the current mapping:
* Works for non-PIE executables.
* Does not require ASLR; as a consequence, debugging MSan programs in
gdb no longer requires "set disable-randomization off".
* Supports linux kernels >=4.1.2.
* The code is marginally faster and smaller.
This is an ABI break. We never really promised ABI stability, but
this patch includes a courtesy escape hatch: a compile-time macro
that reverts back to the old mapping layout.
llvm-svn: 249754
|
| |
|
|
|
|
|
|
|
| |
This reverts commit ea02fa45225c35613bfecab383fb526e24b74497 (r249337).
Reason: broken "ninja AsanUnitTests" on Android/AArch64.
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/20675/steps/build%20compiler-rt%20android%2Faarch64/logs/stdio
llvm-svn: 249730
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Since r223145 we don't include sanitizer_allocator_internal.h into
sanitizer_symbolizer.h, so we can have undefined reference to
Internal{Alloc, Free} stuff into sanitizer_symbolizer_libbacktrace.cc under
SANITIZER_CP_DEMANGLE macro.
This patch simply includes appropriate header into
sanitizer_symbolizer_libbacktrace.h to resolve the issue.
Patch by Maxim Ostapenko!
Reviewers: kcc, eugenis, samsonov
Subscribers: llvm-commits, ygribov
Differential Revision: http://reviews.llvm.org/D13429
llvm-svn: 249633
|
| |
|
|
|
|
|
| |
The ARM RTABI defines these functions as __aeabi_h2f, __aeabi_f2h and
__aeabi_d2h, so we need aliases for them.
llvm-svn: 249559
|
| |
|
|
|
|
|
| |
__GNUC__ indicates the GNU compiler, not __GNU__. This got through due to
building with clang rather than gcc.
llvm-svn: 249516
|
| |
|
|
|
|
|
|
|
| |
cl does not support the same intrinsics as clang. Provide implementations for
the intrinsics using MSVC builtins.
Patch by Tee Hao Wei!
llvm-svn: 249515
|
| |
|
|
|
|
|
|
|
| |
cl does not support C99 completely as of VS2015. Emulate _Complex to allow
building with MSVC.
Patch by Tee Hao Wei!
llvm-svn: 249514
|
| |
|
|
|
|
|
|
| |
Use MSVCRT functions for floating-point builtins unavailable on MSVC.
Patch by Tee Hao Wei!
llvm-svn: 249513
|
| |
|
|
|
|
|
|
|
|
| |
Reviewers: howard.hinnant, samsonov
Subscribers: samsonov, dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D13098
llvm-svn: 249382
|
| |
|
|
|
|
|
|
| |
Unfortunately, int_utils.h needs to depend on int_lib for the common macro
definitions. However, currently, int_utils.h is included by int_lib.h. Reorder
the inclusion to work around this.
llvm-svn: 249376
|
| |
|
|
|
|
|
|
| |
This allows us to build the builtins using MSVC. NFC.
Patch by Tee Hao Wei!
llvm-svn: 249375
|
| |
|
|
|
|
|
|
| |
Use 4294967296.f instead of 0x1p32f to fix MSVC. NFC.
Patch by Tee Hao Wei!
llvm-svn: 249374
|
| |
|
|
|
|
|
|
| |
Include Windows.h instead of winbase.h and windef.h
Patch by Tee Hao Wei!
llvm-svn: 249373
|
| |
|
|
|
|
|
|
| |
This patch add support for leak sanitizer for aarch64. Similar to
MIPS it uses a SizeClassAllocator32 due VMA constraints (aarch64
currently supports 39 and 42-bit VMA).
llvm-svn: 249337
|
| |
|
|
|
|
|
|
| |
r248325.
Like i386, Mips needs a versioned interceptor but must select GLIBC_2.2.
llvm-svn: 249307
|
| |
|
|
|
|
|
|
| |
so they don't get included on 'm' architectures. NFC.
This should help make the compiler-rt build less noisy.
llvm-svn: 249084
|
| |
|
|
|
|
|
|
| |
files for OS X to the exclude lists.
This should help make the compiler-rt build less noisy.
llvm-svn: 249070
|
| |
|
|
|
|
|
|
| |
files for the iOS simulator to the exclude lists.
This should help make the compiler-rt build less noisy.
llvm-svn: 249068
|
| |
|
|
|
|
|
|
| |
files for iOS to the exclude lists.
This should help make the compiler-rt build less noisy.
llvm-svn: 249057
|
| |
|
|
| |
llvm-svn: 249051
|
| |
|
|
|
|
|
| |
This should make the Android/x86 bot (running on a Nexus Player) less
flaky.
llvm-svn: 249044
|
| |
|
|
| |
llvm-svn: 248979
|
| |
|
|
| |
llvm-svn: 248973
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Trim spaces.
- Use nullptr in place of 0 for pointer variables.
- Use '!p' in place of 'p == 0' for null pointer checks.
- Add blank lines to separate function definitions.
- Add 'extern "C"' or 'namespace foo' comments after the appropriate
closing brackets
This is a continuation of work from 409b7b82. The focus here is on the
various sanitizers (not sanitizer_common, as before).
Patch by Eugene Zelenko!
Differential Revision: http://reviews.llvm.org/D13225
llvm-svn: 248966
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Trim spaces.
- Use nullptr in place of 0 for pointer variables.
- Use '!p' in place of 'p == 0' for null pointer checks.
Patch by Eugene Zelenko!
Differential Revision: http://reviews.llvm.org/D13310
llvm-svn: 248964
|
| |
|
|
| |
llvm-svn: 248962
|
| |
|
|
|
|
| |
libclang_rt.profile for iOS.
llvm-svn: 248948
|
| |
|
|
|
|
|
|
| |
lists change.
We need to make sure that if you change the builtin filter lists CMake re-generates its configurations so it includes the right builtins in the generated libraries.
llvm-svn: 248852
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Summary: This ports functionality from the clang_macho_embedded.mk platform makefile over to CMake.
Reviewers: bogner, samsonov, bob.wilson
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D13226
llvm-svn: 248850
|
| |
|
|
|
|
|
| |
CFI itself, on the other hand, doesn't require anything, including
sanitizer_common.
llvm-svn: 248830
|
| |
|
|
|
|
|
| |
Map MSan heap space early (in __msan_init) so that user code can not
accidentally (i.e. w/o MAP_FIXED) create a conflicting mapping.
llvm-svn: 248829
|
| |
|
|
|
|
| |
lib/sanitizer_common headers, unify closing inclusion guards. Patch by Eugene Zelenko
llvm-svn: 248816
|
| |
|
|
|
|
| |
architectures since we don't support aeabi on iOS.
llvm-svn: 248744
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
If the builtins are built with libgcc as the unwind provider on ARM, the exposed
_Unwind_SetIP is a macro. This results in the following warning due to
expansion of the argument:
warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
Add a no-op set of parenthesis around the argument that will prevent this
warning.
llvm-svn: 248686
|
| |
|
|
|
|
| |
Silence a few "warning: extra ';'" warnings from GCC.
llvm-svn: 248653
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a new name for ARM32 (armhf). We now force that the default build for
ARM32 (arm) to be soft-float ABI. This has a corresponding clang change to look
for these names based on the floating point ABI. The functions are built
identically (the functions are marked as AAPCS, so the calling convention does
not change, as per the RTABI specification), however, the object file contains
attributes indicating the build configuration which the linker will ensure are
not mix and matched. We now built the appropriate named archive so that we can
link properly.
llvm-svn: 248648
|
| |
|
|
|
|
| |
There are lingering issues building the atomic builtins with various versions of gcc. To unblock people we can only include them on Apple platforms where they are more tested.
llvm-svn: 248386
|
| |
|
|
| |
llvm-svn: 248385
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
make/platform/clang_darwin.mk in compiler_rt
Summary:
Building the builtins on Darwin platforms is a bit complicated. This is a first-pass implementation of the functionality from clang_darwin.mk into CMake.
When building the builtins on Darwin we have layers of blacklists that we apply based on platform, architecture, and minimum supported OS version.
Reviewers: bogner, filcab, bob.wilson, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D13059
llvm-svn: 248383
|
| |
|
|
|
|
| |
Returning a void expression is bad.
llvm-svn: 248346
|
| |
|
|
| |
llvm-svn: 248330
|
| |
|
|
|
|
|
|
|
|
| |
available.
This should fix the bots broken by r248322.
Reviewed by bogner over my shoulder.
llvm-svn: 248328
|
| |
|
|
|
|
|
|
|
| |
This fixes a crash in pthread_create on linux/i386 due to abi
incompatibility between intercepted and non-intercepted functions.
See the test case for more details.
llvm-svn: 248325
|
| |
|
|
|
|
|
|
|
|
| |
Reviewers: bogner, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D13069
llvm-svn: 248322
|
| |
|
|
|
|
|
| |
This reverts r247484 and two follow-up commits.
Breaks ppc and x86_64 sanitizer bots.
llvm-svn: 247921
|