1. Nov 04, 2015
  2. Nov 03, 2015
    • Martell Malone's avatar
      Remove some legacy mingw-w64 gcc struct info · eec224ee
      Martell Malone authored
      As of gcc 4.7 mingw-w64 no longer emits 128-bit structs as i128
      
      Differential Revision: http://reviews.llvm.org/D14179
      
      llvm-svn: 251930
      eec224ee
    • Martell Malone's avatar
      Support for 32-bit mingw-w64 in compiler-rt. · 40eb83ba
      Martell Malone authored
      Add chkstk/alloca for gcc objects.
      Replace or instructions with test, the latter should be marginally more
      efficent, as it does not write to memory.
      
      Differential Revision: http://reviews.llvm.org/D14044
      
      Patch by vadimcn
      
      llvm-svn: 251928
      40eb83ba
    • Rafael Espindola's avatar
      Simplify and fix style. · 9eb3e570
      Rafael Espindola authored
      llvm-svn: 251927
      9eb3e570
    • Teresa Johnson's avatar
      Move metadata linking after lazy global materialization/linking. · 07b825b0
      Teresa Johnson authored
      Summary:
      Currently, named metadata is linked before the LazilyLinkGlobalValues
      list is walked and materialized/linked. As a result, references
      from DISubprogram and DIGlobalVariable metadata to yet unmaterialized
      functions and variables cause them to be added to the lazy linking
      list and their definitions are materialized and linked.
      
      This makes the llvm-link -only-needed option not have the intended
      effect when debug information is present, as the otherwise unneeded
      functions/variables are still linked in.
      
      Additionally, for ThinLTO I have implemented a mechanism to only link
      in debug metadata needed by imported functions. Moving named metadata
      linking after lazy GV linking will facilitate applying this mechanism
      to the LTO and "llvm-link -only-needed" cases as well.
      
      Reviewers: dexonsmith, tra, dblaikie
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D14195
      
      llvm-svn: 251926
      07b825b0
    • Teresa Johnson's avatar
      Pass enum instead of bool to new linkInModule call in llvm-link · 04e58774
      Teresa Johnson authored
      A new call I added to linkInModule from llvm-link in r251866
      was still passing in a boolean for an argument that was changed to an
      enum in r246561. I didn't catch this in my merge since the bool false
      matched the flag value it mapped to.
      
      llvm-svn: 251925
      04e58774
    • Kuba Brecka's avatar
      Fixup for r251923 to fix a warning about an extra semicolon. · 127f6699
      Kuba Brecka authored
      llvm-svn: 251924
      127f6699
    • Kuba Brecka's avatar
      Reapply r251916 ("[tsan] Port TSan interceptors on OS X"). · 14901215
      Kuba Brecka authored
      llvm-svn: 251923
      14901215
    • Kuba Brecka's avatar
      Revert r251916 ("[tsan] Port TSan interceptors on OS X"). · 9d71caa9
      Kuba Brecka authored
      llvm-svn: 251922
      9d71caa9
    • Rafael Espindola's avatar
      Remove a redundant boolean. · 9b896086
      Rafael Espindola authored
      llvm-svn: 251921
      9b896086
    • Kuba Brecka's avatar
      Reapply r251918 ("[tsan] Fix build errors for TSan on OS X"). · cf41c0c9
      Kuba Brecka authored
      llvm-svn: 251920
      cf41c0c9
    • Kuba Brecka's avatar
      Revert r251918 ("[tsan] Fix build errors for TSan on OS X"). · 646e1bef
      Kuba Brecka authored
      llvm-svn: 251919
      646e1bef
    • Kuba Brecka's avatar
      [tsan] Fix build errors for TSan on OS X · 350a9aae
      Kuba Brecka authored
      This patch moves a few functions from `sanitizer_linux_libcdep.cc` to `sanitizer_posix_libcdep.cc` in order to use them on OS X as well. Plus a few more small build fixes.
      
      This is part of an effort to port TSan to OS X, and it's one the very first steps. Don't expect TSan on OS X to actually work or pass tests at this point.
      
      Differential Revision: http://reviews.llvm.org/D14235
      
      llvm-svn: 251918
      350a9aae
    • Ravitheja Addepally's avatar
      Changes for Bug 25251 · 46bcbaaf
      Ravitheja Addepally authored
      Summary:
      The solution to bug 24074,rL249673 needed
      to parse the function information from the Dwarf in order
      to set the SymbolContext. For that, GetFunction was called
      for the parent in GetTypeForDIE, which parses the
      ChildParameters and in the flow, GetTypeForDIE was called
      for one of the sibling die and so an infinite
      loop was triggered by calling GetFunction repeatedly for the
      same function.
      
      The changes in this revision modify the GetTypeForDIE to only
      resolve the function context in the Type Lookup flow and so
      prevent the infinite loop.
      
      A testcase has also been added to check for regression in the
      future and a test vector had been added to the testcase of
      24074.
      
      Reviewers: jingham, tberghammer, clayborg
      
      Differential Revision: http://reviews.llvm.org/D14202
      
      llvm-svn: 251917
      46bcbaaf
    • Kuba Brecka's avatar
      [tsan] Port TSan interceptors on OS X · 0ca1e2c3
      Kuba Brecka authored
      This patch modifies `tsan_interceptors.cc` to be buildable on OS X. Several of the intercepted methods are not available on OS X, so we need to `#if !SANITIZER_MAC` them. Plus a few other fixes, e.g. `pthread_yield` doesn't exist, let's use `internal_sched_yield` instead.
      
      This is part of an effort to port TSan to OS X, and it's one the very first steps. Don't expect TSan on OS X to actually work or pass tests at this point.
      
      Differential Revision: http://reviews.llvm.org/D14237
      
      llvm-svn: 251916
      0ca1e2c3
    • Kuba Brecka's avatar
      [tsan] CMake support for TSan on OS X · c9249498
      Kuba Brecka authored
      Hi, this patch adds a CMake flag called `COMPILER_RT_ENABLE_TSAN_OSX`, which is off by default. If enabled, the build system will be building the OS X version of the TSan runtime library (called `libclang_rt.tsan_osx_dynamic.dylib`). I'll submit patches that fix OS X build errors shortly.
      
      This is part of an effort to port TSan to OS X, and it's one the very first steps. Don't expect TSan on OS X to actually work or pass tests at this point.
      
      llvm-svn: 251915
      c9249498