1. Nov 05, 2014
    • Alexey Samsonov's avatar
      [TSan] Keep original function and filename in ReportStack. · 3931dca7
      Alexey Samsonov authored
      TSan used to do the following transformations with data obtained
      from the symbolizer:
      1) Strip "__interceptor_" prefix from function name.
      2) Use "strip_path_prefix" runtime flag to strip filepath.
      
      Now these transformations are performed right before the stack trace
      is printed, and ReportStack structure contains original information.
      
      This seems like a right thing to do - stripping is a detail of report
      formatting implementation, and should belong there. We should, for
      example, use original path to source file when we apply suppressions.
      
      This change also make "strip_path_prefix" flag behavior in TSan
      consistent with all the other sanitizers - now it should actually
      match *the prefix* of path, not some substring. E.g. earlier TSan
      would turn "/usr/lib/libfoo.so" into "libfoo.so" even if strip_path_prefix
      was "/lib/".
      
      Finally, strings obtained from symbolizer come from internal allocator,
      and "stripping" them early by incrementing a "char*" ensures they can
      never be properly deallocated, which is a bug.
      
      llvm-svn: 221283
      3931dca7
    • Rafael Espindola's avatar
      Remove unused DisableRedZone option. · 649f172c
      Rafael Espindola authored
      Patch by Steve King.
      
      llvm-svn: 221282
      649f172c
    • David Majnemer's avatar
      InstSimplify: Fold a hasNoSignedWrap() call into a match() expression · 2de97fcd
      David Majnemer authored
      No functionality change intended, it's just a little more concise.
      
      llvm-svn: 221281
      2de97fcd
    • David Majnemer's avatar
      InstSimplify: Fold a hasNoUnsignedWrap() call into a match() expression · 4f438377
      David Majnemer authored
      No functionality change intended, it's just a little more concise.
      
      llvm-svn: 221280
      4f438377
    • Kuba Brecka's avatar
      Use @rpath as LC_ID_DYLIB for ASan dylib on OS X · 9ff912db
      Kuba Brecka authored
      Change the LC_ID_DYLIB of ASan's dynamic libraries on OS X to be set to "@rpath/libclang_rt.asan_osx_dynamic.dylib" and similarly for iossim. Clang driver then sets the "-rpath" to be the real path to where clang currently has the dylib (because clang uses the relative path to its current executable). This means if you move the compiler or install the binary release, -fsanitize=address will link to the proper library.
      
      Reviewed at http://reviews.llvm.org/D6018
      
      llvm-svn: 221279
      9ff912db
    • Kuba Brecka's avatar
      Use @rpath as LC_ID_DYLIB for ASan dylib on OS X · 6c22aec2
      Kuba Brecka authored
      Change the LC_ID_DYLIB of ASan's dynamic libraries on OS X to be set to "@rpath/libclang_rt.asan_osx_dynamic.dylib" and similarly for iossim. Clang driver then sets the "-rpath" to be the real path to where clang currently has the dylib (because clang uses the relative path to its current executable). This means if you move the compiler or install the binary release, -fsanitize=address will link to the proper library.
      
      Reviewed at http://reviews.llvm.org/D6018
      
      llvm-svn: 221278
      6c22aec2
    • Toma Tabacu's avatar
      [mips] Improve support for the .set mips16/nomips16 assembler directives. · cc2502d8
      Toma Tabacu authored
      Summary:
      Appropriately set/clear the FeatureBit for Mips16 when these assembler directives are used and also emit ".set nomips16" (previously, only ".set mips16" was being emitted).
      
      These improvements allow for better testing of the .cpload/.cprestore assembler directives (which are not supposed to work when Mips16 is enabled).
      
      Test Plan: The test is bare-bones because there are no MC tests for Mips16 instructions (there's only one, which checks that the Mips16 ELF header flag gets set), and that suggests to me that it has not been implemented yet in the IAS.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D5462
      
      llvm-svn: 221277
      cc2502d8
    • Juergen Ributzka's avatar
      [Stackmaps] Make test less fragile. NFC. · 7d434ce7
      Juergen Ributzka authored
      llvm-svn: 221276
      7d434ce7
    • Eric Fiselier's avatar
      Mark another test as UNSUPPORTED with ASAN and MSAN · 193bd50f
      Eric Fiselier authored
      llvm-svn: 221275
      193bd50f
    • Sanjay Patel's avatar
      remove function names from comments; NFC · aee84210
      Sanjay Patel authored
      llvm-svn: 221274
      aee84210
    • Sanjay Patel's avatar
      fix typo in comment · 547e9752
      Sanjay Patel authored
      llvm-svn: 221273
      547e9752
  2. Nov 04, 2014