1. Oct 26, 2013
    • Daniel Sanders's avatar
      [bugpoint] Increase the default memory limit for subprocesses to 300MB. · 1b71f42f
      Daniel Sanders authored
      Summary:
      Currently shared library builds (BUILD_SHARED_LIBS=ON in cmake) fail three
      bugpoint tests (BugPoint/remove_arguments_test.ll,
      BugPoint/crash-narrowfunctiontest.ll, and BugPoint/metadata.ll).
      
      If I run the bugpoint commands that llvm-lit runs with without -silence-passes
      I see errors such as this:
          opt: error while loading shared libraries: libLLVMSystemZInfo.so: failed to
          map segment from shared object: Cannot allocate memory
      
      It seems that the increased size of the binaries in a shared library build is
      causing the subprocess to exceed the 100MB memory limit. This patch therefore
      increases the default limit to a level at which these tests pass.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      CC: llvm-commits, rafael
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D2013
      
      llvm-svn: 193420
      1b71f42f
    • Rafael Espindola's avatar
      Merge two adjacent ifs. · b625016a
      Rafael Espindola authored
      llvm-svn: 193419
      b625016a
    • Jordan Rose's avatar
      Add -Wstring-plus-char, which warns when adding char literals to C strings. · 5565941e
      Jordan Rose authored
      Specifically, this warns when a character literal is added (using '+') to a
      variable with type 'char *' (or any other pointer to character type). Like
      -Wstring-plus-int, there is a fix-it to change "foo + 'a'" to "&foo['a']"
      iff the character literal is on the right side of the string.
      
      Patch by Anders Rönnholm!
      
      llvm-svn: 193418
      5565941e
    • Evgeniy Stepanov's avatar
      [sanitizer] Disable tmpnam_r interceptor on Mac. · c0fdb394
      Evgeniy Stepanov authored
      llvm-svn: 193417
      c0fdb394
  2. Oct 25, 2013