Skip to content
Commits on Jul 24, 2014
  1. Merge branch 'compiler-rt' into master

    * compiler-rt:
      Add Guan-Hong Liu to credits.
      Moved the builtins documentation to lib/builtins/
      Add Matt Thomas and Joerg Sonnenberger to credits.
      Update the copyright credits -- Happy new year 2014!
    committed Jul 24, 2014
  2. buildlib: make better CC and CFLAGS guesses

    Try gcc, clang and cc before failing to find a default compiler.
    If CFLAGS is not set only use -O2 for gcc and clang otherwise -O.
    committed Jul 24, 2014
  3. Add info for clang without -integrated-as support

    The -fblocks option can still be used with versions of clang that
    do not have integrated assembler support.  The source file must
    first be compiled to a .s file using -fblocks and then that file
    compiled without -fblocks to the desired end product.
    
    Add support for this (and a warning message) to checktests and
    the README.txt file.
    committed Jul 24, 2014
Commits on Jul 23, 2014
  1. @vonosmas
  2. @vonosmas

    Fix unused-variable warning

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213786 91177308-0d34-0410-b5e6-96231b3b80d8
    vonosmas committed Jul 23, 2014
  3. @vonosmas

    [UBSan] Add the ability to dump call stacks to -fsanitize=vptr

    This change introduces the first UBSan-specific runtime flag: print_stacktrace
    (off by default). It can be set in UBSAN_OPTIONS to unwind and print call stacks
    in addition to diagnostic messages. For now these stacks are printed only
    in vptr checker.
    
    This change is based on http://reviews.llvm.org/D4410 by Byoungyoung Lee!
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213783 91177308-0d34-0410-b5e6-96231b3b80d8
    vonosmas committed Jul 23, 2014
  4. @vonosmas

    [UBSan] Introduce UBSAN_OPTIONS environment variable.

    If UBSan is run in a standalone mode (w/o any other sanitizer), it
    still uses functions from sanitizer_common, some of which depend on
    the value of runtime flags. Allow to override the default values of these
    flags with UBSAN_OPTIONS variable. In particular, UBSAN_OPTIONS=symbolize=0
    can be used to turn off online symbolization.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213782 91177308-0d34-0410-b5e6-96231b3b80d8
    vonosmas committed Jul 23, 2014
  5. @rengolin

    Revert "Include assembly files in builtins library build"

    This reverts commit r213684, since it was breaking the compiler-rt
    build and the sanitizers' bot.
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213724 91177308-0d34-0410-b5e6-96231b3b80d8
    rengolin committed Jul 23, 2014
Commits on Jul 22, 2014
  1. @vonosmas
  2. @rengolin

    Fix incompatible assembly in ARM builtins library

    Convert the CBNZ backward branch instruction to CMP and BNE
    avoiding illegal backwards branch and making the assembly code
    in synh-ops.h to be UAL compliant.
    
    Patch by: Sumanth Gundapaneni
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213685 91177308-0d34-0410-b5e6-96231b3b80d8
    rengolin committed Jul 22, 2014
  3. @rengolin

    Include assembly files in builtins library build

    The CMake assembler build system ignores the .S assembly files in builtins
    library build. This patch fixes the issue.
    
    Patch by: Sumanth Gundapaneni
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213684 91177308-0d34-0410-b5e6-96231b3b80d8
    rengolin committed Jul 22, 2014
  4. [ASan/Win tests] Bring back -GS- as SEH tests fail otherwise

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213668 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov committed Jul 22, 2014
  5. [ASan/Win tests] Don't generate debug info where it is not needed

    Otherwise it results in flaky tests
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213667 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov committed Jul 22, 2014
  6. [ASan/Win] Add SEH handling to the DLL thunk as well

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213656 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov committed Jul 22, 2014
  7. [ASan/Win] Handle SEH exceptions (best-effort, similar to longjmp)

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213654 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov committed Jul 22, 2014
  8. [ASan/Win] Add handling of C++ exceptions to the RTL

    Also add a longjmp() test
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213649 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov committed Jul 22, 2014
  9. [ASan] Simplify exception/longjmp tests even further

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213646 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov committed Jul 22, 2014
  10. [ASan] Split throw_catch tests into two files: throw/catch + longjmp

    Also add some more assertions into these tests
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213642 91177308-0d34-0410-b5e6-96231b3b80d8
    Timur Iskhodzhanov committed Jul 22, 2014
  11. @vonosmas

    [MSan] Fix strncpy interceptor

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213590 91177308-0d34-0410-b5e6-96231b3b80d8
    vonosmas committed Jul 22, 2014
Commits on Jul 21, 2014
  1. @vonosmas
  2. @vonosmas
  3. @ramosian-glider
  4. @ramosian-glider
  5. @ramosian-glider

    [lsan] Use a more standard-conformant sched_yield() instead of pthrea…

    …d_yield().
    
    There's no pthread_yield() on OSX (only sched_yield() and pthread_yield_np()).
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213516 91177308-0d34-0410-b5e6-96231b3b80d8
    ramosian-glider committed Jul 21, 2014
Commits on Jul 20, 2014
  1. @jsonn

    Redo THUMB support.

    Discussed with and tested by: Saleem Abdulrasool
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213481 91177308-0d34-0410-b5e6-96231b3b80d8
    jsonn committed Jul 20, 2014
  2. @jsonn

    Revert r213467, it breaks non-thumb mode.

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213479 91177308-0d34-0410-b5e6-96231b3b80d8
    jsonn committed Jul 20, 2014
  3. @compnerd

    ARM: fix division in some cases

    For ARM cores that are ARMv6T2+ but not ARMv7ve or ARMv7-r and not an updated
    ARMv7-a that has the idiv extension (chips with clz but not idiv), an incorrect
    jump would be calculated due to the preference to thumb instructions over ARM.
    
    Rather than computing the target at runtime, use a jumptable instead.  This
    trades a bit of storage for performance.  The overhead is 32-bytes for each of
    the three routines, but avoid the calculation of the offset.
    
    Because clz was introduced in ARMv6T2 and idiv in certain versions of ARMv7,
    the non-clz, non-idiv case implies a target which does not support Thumb-2, and
    thus we cannot use Thumb on those targets (as it is unlikely that the assembly
    will assemble).
    
    Take the opportunity to refactor the IT block macros into assembly.h rather than
    redefining them in the TUs where they are used.
    
    Existing tests cover the full change already, so no new tests are added.
    
    This effectively reverts SVN r213309.
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213467 91177308-0d34-0410-b5e6-96231b3b80d8
    compnerd committed Jul 20, 2014
Commits on Jul 18, 2014
  1. @dvyukov

    tsan: fix Go runtime build with clang

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213384 91177308-0d34-0410-b5e6-96231b3b80d8
    dvyukov committed Jul 18, 2014
  2. @dvyukov

    tsan: expose atomic operations in Go runtime

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213382 91177308-0d34-0410-b5e6-96231b3b80d8
    dvyukov committed Jul 18, 2014
  3. Add FreeBSD support to the Asan symbolization script

    Differential Revision: http://reviews.llvm.org/D4560
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213370 91177308-0d34-0410-b5e6-96231b3b80d8
    Viktor Kutuzov committed Jul 18, 2014
  4. Add FreeBSD support to the address sanitizer's waitid.cc test case

    Differential Revision: http://reviews.llvm.org/D4422
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213368 91177308-0d34-0410-b5e6-96231b3b80d8
    Viktor Kutuzov committed Jul 18, 2014
Commits on Jul 17, 2014
  1. @stephenhines

    Revert Thumb-2 conversion of some ARM builtins.

    The udivmodsi4/modsi3/umodsi3 code computes jump targets based on ARM encodings
    (if CLZ is present and IDIV is not present).
    
    Reverts parts of r211032 and r211035.
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213309 91177308-0d34-0410-b5e6-96231b3b80d8
    stephenhines committed Jul 17, 2014
  2. @eugenis

    [asan] Remove leftover debug printf.

    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213264 91177308-0d34-0410-b5e6-96231b3b80d8
    eugenis committed Jul 17, 2014
  3. @eugenis

    [asan] Fix malloc interception on Android L Preview.

    Format of __libc_malloc_dispatch has changed in Android L.
    While we are moving towards a solution that does not depend on bionic
    internals, here is something to support both K* and L releases.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213263 91177308-0d34-0410-b5e6-96231b3b80d8
    eugenis committed Jul 17, 2014
Something went wrong with that request. Please try again.