Re: r247618 - C11 _Bool bitfield diagnostic

2015-09-21 Thread Alexey Samsonov via cfe-commits
Do you plan to fix diagnostic emission for cases like "bool b : 4" in the near future, or it makes sense to revert this change until we reach consensus on the rules, and implementation? On Fri, Sep 18, 2015 at 11:17 PM, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Fri, Sep

Re: [PATCH] D12840: [cfe-dev] Enabling ThreadSanitizer on PPC64(BE/LE) plarforms

2015-09-22 Thread Alexey Samsonov via cfe-commits
samsonov added a subscriber: samsonov. samsonov accepted this revision. samsonov added a reviewer: samsonov. samsonov added a comment. LGTM http://reviews.llvm.org/D12840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/

Re: [PATCH] D13109: [sanitizer] Enable lsan for AArch64

2015-09-23 Thread Alexey Samsonov via cfe-commits
samsonov added a subscriber: samsonov. samsonov accepted this revision. samsonov added a reviewer: samsonov. samsonov added a comment. This revision is now accepted and ready to land. OK to submit after compiler-rt support is submitted. http://reviews.llvm.org/D13109 _

Re: [PATCH] D13122: Enable SafeStack on all Linux platforms

2015-09-23 Thread Alexey Samsonov via cfe-commits
samsonov accepted this revision. samsonov added a comment. This revision is now accepted and ready to land. LGTM Repository: rL LLVM http://reviews.llvm.org/D13122 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

Re: [PATCH] D13399: [CMake] Bug 14109 - CMake build for compiler-rt should use just-built clang

2015-10-05 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: runtime/CMakeLists.txt:33 @@ -32,1 +32,3 @@ + ) +set(cmake_3_4_USES_TERMINAL USES_TERMINAL 1) endif() Should this also be named cmake_3_4_USES_TERMINAL_OPTIONS? Comment at: runtime/CMakeList

Re: [PATCH] D11857: CFI: Introduce -fsanitize=cfi-icall flag.

2015-08-10 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Driver changes look good. http://reviews.llvm.org/D11857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D12117: Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback()

2015-08-18 Thread Alexey Samsonov via cfe-commits
samsonov created this revision. samsonov added a reviewer: EricWF. samsonov added a subscriber: cfe-commits. We are going to remove the former soon. http://reviews.llvm.org/D12117 Files: test/libcxx/containers/sequences/vector/asan.pass.cpp Index: test/libcxx/containers/sequences/vector/asan.

Re: [PATCH] D12117: Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback()

2015-08-18 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Yes. Is this is an issue? http://reviews.llvm.org/D12117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12117: Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback()

2015-08-19 Thread Alexey Samsonov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL245467: Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback() (authored by samsonov). Changed prior to commit: http://reviews.llvm.org/D12117?vs=32456&id=32572#toc Repository: rL

[libcxx] r245467 - Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback()

2015-08-19 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Wed Aug 19 12:28:01 2015 New Revision: 245467 URL: http://llvm.org/viewvc/llvm-project?rev=245467&view=rev Log: Replace __asan_set_error_exit_code() with __sanitizer_set_death_callback() Summary: We are going to remove the former soon. Reviewers: EricWF Subscribers: cfe-c

Re: [PATCH] D12181: [sanitizer] Add -fsanitize-trap-function.

2015-08-20 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Please upload the patch with more context (see http://llvm.org/docs/Phabricator.html). Comment at: tools/clang/include/clang/Driver/Options.td:610 @@ -608,1 +609,3 @@ + Flags<[CC1Option, CoreOption]>, +

[PATCH] D12215: [UBSan] Add the ability to print more precise error kind in summary line.

2015-08-20 Thread Alexey Samsonov via cfe-commits
samsonov created this revision. samsonov added reviewers: rsmith, pcc. samsonov added a subscriber: cfe-commits. http://reviews.llvm.org/D12215 Files: lib/ubsan/ubsan_checks.inc lib/ubsan/ubsan_diag.cc lib/ubsan/ubsan_diag.h lib/ubsan/ubsan_flags.inc lib/ubsan/ubsan_handlers.cc lib/ub

Re: [PATCH] D12181: [sanitizer] Add -fsanitize-trap-function.

2015-08-20 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. See https://llvm.org/bugs/show_bug.cgi?id=24443 (it's worth including this reference to change description). http://reviews.llvm.org/D12181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

Re: [PATCH] D12181: [sanitizer] Add -fsanitize-trap-function.

2015-08-20 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Overall, this looks reasonable to me, but I'd like Richard to confirm he's fine with this change as well. Comment at: docs/UsersManual.rst:1121 @@ +1120,3 @@ + Instruct code generator to emit a function call to the specified + function name instead

Re: [PATCH] D12215: [UBSan] Add the ability to print more precise error kind in summary line.

2015-08-20 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: lib/ubsan/ubsan_flags.inc:26 @@ +25,2 @@ +UBSAN_FLAG(bool, report_error_type, false, +"Print specific error type instead of 'undefined-behavior' in summary.") filcab wrote: > Do we care that much about keeping t

Re: [PATCH] D12215: [UBSan] Add the ability to print more precise error kind in summary line.

2015-08-20 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: lib/ubsan/ubsan_handlers.cc:57-58 @@ -57,2 +56,4 @@ + if (!Pointer) { +R.setErrorType(ErrorType::NullPointerUse); Diag(Loc, DL_Error, "%0 null pointer of type %1") << TypeCheckKinds[Data->TypeCheckKind] << Data->Type; --

Re: [PATCH] D12215: [UBSan] Add the ability to print more precise error kind in summary line.

2015-08-20 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: lib/ubsan/ubsan_handlers.cc:57-58 @@ -57,2 +56,4 @@ + if (!Pointer) { +R.setErrorType(ErrorType::NullPointerUse); Diag(Loc, DL_Error, "%0 null pointer of type %1") << TypeCheckKinds[Data->TypeCheckKind] << Data->Type; --

Re: [PATCH] D12215: [UBSan] Add the ability to print more precise error kind in summary line.

2015-08-24 Thread Alexey Samsonov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL245897: [UBSan] Add the ability to print more precise error kind in summary line. (authored by samsonov). Changed prior to commit: http://reviews.llvm.org/D12215?vs=32753&id=33019#toc Repository: rL

Re: [PATCH] D12401: Handling i686 architecture in makefiles for clang.

2015-08-27 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. See my comment in a different CL - I would strongly prefer to not touch autoconf build system unless absolutely necessary. Repository: rL LLVM http://reviews.llvm.org/D12401 ___ cfe-commits mailing list cfe-commits@list

r246795 - Add -target flag to Clang invocations in this test.

2015-09-03 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Thu Sep 3 14:11:42 2015 New Revision: 246795 URL: http://llvm.org/viewvc/llvm-project?rev=246795&view=rev Log: Add -target flag to Clang invocations in this test. ASan may not be supported for the default target triple. Modified: cfe/trunk/test/Driver/fsanitize-blackl

r246804 - Add target flag to clang-cl invocation in this test.

2015-09-03 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Thu Sep 3 15:53:14 2015 New Revision: 246804 URL: http://llvm.org/viewvc/llvm-project?rev=246804&view=rev Log: Add target flag to clang-cl invocation in this test. Modified: cfe/trunk/test/Driver/fsanitize-coverage.c Modified: cfe/trunk/test/Driver/fsanitize-coverage.

Re: [PATCH] D13399: [CMake] Bug 14109 - CMake build for compiler-rt should use just-built clang

2015-10-07 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: runtime/CMakeLists.txt:41 @@ +40,3 @@ + + add_custom_target(compiler-rt-clear +DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-cleared So, that's the target that you can invoke manually to clean compiler-rt build?

Re: [PATCH] D13399: [CMake] Bug 14109 - CMake build for compiler-rt should use just-built clang

2015-10-09 Thread Alexey Samsonov via cfe-commits
samsonov accepted this revision. samsonov added a comment. This revision is now accepted and ready to land. Looks pretty good. I'm still not convinced with your -Werror arguments, and will be unavailable during the next week, so feel free to land it, provided we'll return to the discussion later

Re: [libcxx] r250319 - [libcxx] Make it drastically simpler to link libc++.

2015-10-22 Thread Alexey Samsonov via cfe-commits
After this change I am unable to configure libcxx as external project from compiler-rt with extra build flags. The problem is gen_link_script.py is invoked with incorrect number of arguments: LIBCXX_CXX_ABI_LIBNAME is automatically deduced to be "none", and LIBCXX_CXX_ABI_LIBRARY which is passed to

Re: [libcxx] r250319 - [libcxx] Make it drastically simpler to link libc++.

2015-10-22 Thread Alexey Samsonov via cfe-commits
Seems to work now, thanks for the quick fix! On Thu, Oct 22, 2015 at 1:57 PM, Eric Fiselier wrote: > Hi Alexey, > > Please confirm that this works for you now after r251063. Sorry for the > breakage. > > /Eric > > On Thu, Oct 22, 2015 at 9:23 AM, Alexey Samsonov > wrote: > >> After this change

Re: r251712 - Support watchOS and tvOS in compiler-rt builds

2015-10-30 Thread Alexey Samsonov via cfe-commits
Do we need to port this to CMake as well? On Fri, Oct 30, 2015 at 9:30 AM, Tim Northover via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: tnorthover > Date: Fri Oct 30 11:30:51 2015 > New Revision: 251712 > > URL: http://llvm.org/viewvc/llvm-project?rev=251712&view=rev > Log: > Supp

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Alexey Samsonov via cfe-commits
samsonov added a subscriber: samsonov. Comment at: lib/CodeGen/CGExpr.cpp:2494 @@ +2493,3 @@ + llvm::Value *ValidVtable = nullptr; + if (CheckAndAppendValidVtable) { +llvm::Value *AllVtables = llvm::MetadataAsValue::get( This is really ugly. Why are you not

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-02 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2642 @@ +2641,3 @@ + llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); + llvm::Value *ValidVtable = Builder.CreateZExt( + Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::bitset_test), -

Re: [PATCH] D16823: [cfi] Safe handling of unaddressable vtable pointers (clang).

2016-02-03 Thread Alexey Samsonov via cfe-commits
samsonov accepted this revision. samsonov added a reviewer: samsonov. samsonov added a comment. This revision is now accepted and ready to land. LGTM Comment at: lib/CodeGen/CGClass.cpp:2608 @@ -2607,3 +2607,3 @@ auto TypeId = CGM.CreateCfiIdForTypeMetadata(MD); if (CGM.ge

Re: [libcxx] r260570 - Work around regression in glibc 2.22: request that glibc provides the correct

2016-02-11 Thread Alexey Samsonov via cfe-commits
I see bogus boostrap build failures when we're trying to use just-built Clang to build libc++: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/22540/steps/bootstrap%20clang/logs/stdio Do you think it can be related to one of your changes? I'm pretty sure the contents of /usr/inclu

r260779 - Disable two tests that use a lot of stack under ASan.

2016-02-12 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Feb 12 19:02:59 2016 New Revision: 260779 URL: http://llvm.org/viewvc/llvm-project?rev=260779&view=rev Log: Disable two tests that use a lot of stack under ASan. Modified: cfe/trunk/test/Index/index-many-call-ops.cpp cfe/trunk/test/Index/index-many-logical-ops.c

r263081 - EmitCXXStructorCall -> EmitCXXDestructorCall. NFC.

2016-03-09 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Wed Mar 9 18:20:37 2016 New Revision: 263081 URL: http://llvm.org/viewvc/llvm-project?rev=263081&view=rev Log: EmitCXXStructorCall -> EmitCXXDestructorCall. NFC. This function is only used in Microsoft ABI and only to emit destructors. Rename/simplify it accordingly. Modi

r263080 - Remove unused function arguments. NFC.

2016-03-09 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Wed Mar 9 18:20:33 2016 New Revision: 263080 URL: http://llvm.org/viewvc/llvm-project?rev=263080&view=rev Log: Remove unused function arguments. NFC. Modified: cfe/trunk/lib/CodeGen/CGExprCXX.cpp Modified: cfe/trunk/lib/CodeGen/CGExprCXX.cpp URL: http://llvm.org/view

Re: r263429 - [Frontend] Disable value name discarding for all sanitizers.

2016-03-14 Thread Alexey Samsonov via cfe-commits
On Mon, Mar 14, 2016 at 9:50 AM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 14 Mar 2016 6:28 a.m., "Benjamin Kramer via cfe-commits" < > cfe-commits@lists.llvm.org> wrote: > > > > Author: d0k > > Date: Mon Mar 14 08:23:58 2016 > > New Revision: 263429 > > > > URL: http

Re: r263429 - [Frontend] Disable value name discarding for all sanitizers.

2016-03-14 Thread Alexey Samsonov via cfe-commits
On Mon, Mar 14, 2016 at 8:55 AM, Evgenii Stepanov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Mon, Mar 14, 2016 at 8:48 AM, Benjamin Kramer > wrote: > > On Mon, Mar 14, 2016 at 3:59 PM, David Blaikie > wrote: > >> Yeah - how are they relying on them in a non-asserts build anyway? >

Re: [PATCH] D18280: [tsan] Allow -fsanitize=thread for iOS-style simulator targets

2016-03-20 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Cool, great to see this coming. I'll let Kuba sign this off. Comment at: test/Driver/fsanitize.c:220 @@ -219,1 +219,3 @@ +// RUN: %clang -target x86_64-apple-darwin10 -fsanitize=thread %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-TSAN-X86-64-DARW

Re: r264281 - Recommitted r263425 "Supporting all entities declared in lexical scope in LLVM debug info."

2016-03-24 Thread Alexey Samsonov via cfe-commits
Heads-up: I see segmentation faults in Clang following this revision. I will try to come up with a standalone reproducer and update https://llvm.org/bugs/show_bug.cgi?id=26942, possibly reverting this change. On Thu, Mar 24, 2016 at 6:30 AM, Amjad Aboud via cfe-commits < cfe-commits@lists.llvm.org

Re: r264281 - Recommitted r263425 "Supporting all entities declared in lexical scope in LLVM debug info."

2016-03-24 Thread Alexey Samsonov via cfe-commits
I've been using no-asserts build, and it led to segfault, so probably it was required. I see that Reid already proceeded with the revert. I will still work on a reproducer. On Thu, Mar 24, 2016 at 1:43 PM, Aboud, Amjad wrote: > I believe it is safe to disable the assertion. > > I added this asse

Re: r264428 - [ASTMatchers] Fix build for VariadicFunction.

2016-03-25 Thread Alexey Samsonov via cfe-commits
On Fri, Mar 25, 2016 at 10:55 AM, David Blaikie via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > > On Fri, Mar 25, 2016 at 10:46 AM, Samuel Benzaquen via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: sbenza >> Date: Fri Mar 25 12:46:02 2016 >> New Revision: 264428 >> >> U

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-07 Thread Alexey Samsonov via cfe-commits
Interesting. Do we run test/asan/TestCases/suppressions-interceptor.cc on Windows? Seems so: I don't see an XFAIL there, and it also uses suppressions, but with single quote, followed by double quote: %env_asan_opts=suppressions='"%t.supp"' Why does it work there? On Tue, Dec 22, 2015 at 4:35 PM

Re: [PATCH] D15624: Add iOS/watchOS/tvOS support for ASan (clang part)

2016-01-11 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Sorry, lost track of this. Comment at: lib/Driver/ToolChains.cpp:368 @@ +367,3 @@ + StringRef OS = ""; + if (isTargetMacOS()) +OS = "osx"; zaks.anna wrote: > samsonov wrote: > > Wait, this looks horrible. Can we teach toolchain to

Re: [PATCH] D15208: Patch for inline abort code generation

2016-01-11 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Sorry for delay. Comment at: lib/CodeGen/CGExpr.cpp:2543 @@ +2542,3 @@ + // RE: Bug: 25682 + if(!CGM.getCodeGenOpts().MergeTraps || !CGM.getCodeGenOpts().OptimizationLevel || !TrapBB) { +// If we aren't merging traps, set the function to not be o

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-21 Thread Alexey Samsonov via cfe-commits
On Wed, Jan 20, 2016 at 12:42 PM, Nico Weber wrote: > thakis added a comment. > > After some more debugging, the only thing in this test that's still > faiilng on Windows is the "unsigned-integer-overflow:do_overflow" > suppression -- when llvm-symbolizer gets symbols from PDBs it currently > req

Re: [PATCH] D15624: Add iOS/watchOS/tvOS support for ASan (clang part)

2016-01-21 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Thanks. Comment at: lib/Driver/ToolChains.cpp:322 @@ -321,1 +321,3 @@ +StringRef Darwin::getOSLibraryNameSuffix() const { + if (isTargetMacOS()) Fun fact: if TargetPlatform is `TvOSSimulator`, this function will return `iossim` beca

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-21 Thread Alexey Samsonov via cfe-commits
On Thu, Jan 21, 2016 at 10:20 AM, Nico Weber wrote: > On Thu, Jan 21, 2016 at 1:19 PM, Alexey Samsonov > wrote: > >> >> On Wed, Jan 20, 2016 at 12:42 PM, Nico Weber wrote: >> >>> thakis added a comment. >>> >>> After some more debugging, the only thing in this test that's still >>> faiilng on W

Re: [PATCH] D15225: [Driver] Sanitizer support based on runtime library presence

2016-01-21 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. In http://reviews.llvm.org/D15225#328218, @zaks.anna wrote: > > I see, so essentially you want to use a different approach for determining > > sanitizer availability (on OS X for now): if the library is present, then > > we support > > > sanitizer, otherwise we don't

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-21 Thread Alexey Samsonov via cfe-commits
On Thu, Jan 21, 2016 at 10:58 AM, Reid Kleckner wrote: > On Thu, Jan 21, 2016 at 10:47 AM, Nico Weber wrote: > >> Oh, ok, let's not depend on lld then. So, we need to either determine if >>> DIA SDK is available at compiler-rt configure time, or teach >>> llvm-symbolizer.exe to tell us that (as

r258476 - [Docs] Slightly update LSan documentation.

2016-01-21 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Thu Jan 21 19:35:45 2016 New Revision: 258476 URL: http://llvm.org/viewvc/llvm-project?rev=258476&view=rev Log: [Docs] Slightly update LSan documentation. Modified: cfe/trunk/docs/AddressSanitizer.rst cfe/trunk/docs/LeakSanitizer.rst Modified: cfe/trunk/docs/Addres

Re: [PATCH] D15624: Add iOS/watchOS/tvOS support for ASan (clang part)

2016-01-22 Thread Alexey Samsonov via cfe-commits
samsonov accepted this revision. samsonov added a reviewer: samsonov. samsonov added a comment. LGTM Comment at: lib/Driver/ToolChains.cpp:339 @@ +338,3 @@ + } +} + You might need `llvm_unreachable` at the very end to suppress GCC warnings (http://llvm.org/doc

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2016-01-22 Thread Alexey Samsonov via cfe-commits
Thank you for fixing this! On Fri, Jan 22, 2016 at 12:30 PM, Nico Weber wrote: > I implemented Reid's suggestion in 258545. I tested that the test runs and > passes when the DIA SDK is around (this is usually the case), and doesn't > run when it isn't. > > On Thu, Jan 21, 2016 at 2:09 PM, Alexey

r259260 - [UBSan] Add documentation for runtime issue suppression.

2016-01-29 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Jan 29 17:07:14 2016 New Revision: 259260 URL: http://llvm.org/viewvc/llvm-project?rev=259260&view=rev Log: [UBSan] Add documentation for runtime issue suppression. Modified: cfe/trunk/docs/UndefinedBehaviorSanitizer.rst Modified: cfe/trunk/docs/UndefinedBehaviorSa

Re: r259260 - [UBSan] Add documentation for runtime issue suppression.

2016-01-29 Thread Alexey Samsonov via cfe-commits
Hans, do you think it makes sense to merge this patch into 3.8? On Fri, Jan 29, 2016 at 3:07 PM, Alexey Samsonov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: samsonov > Date: Fri Jan 29 17:07:14 2016 > New Revision: 259260 > > URL: http://llvm.org/viewvc/ll

Re: r259260 - [UBSan] Add documentation for runtime issue suppression.

2016-01-29 Thread Alexey Samsonov via cfe-commits
e: > > Hans, do you think it makes sense to merge this patch into 3.8? > > > > On Fri, Jan 29, 2016 at 3:07 PM, Alexey Samsonov via cfe-commits > > wrote: > >> > >> Author: samsonov > >> Date: Fri Jan 29 17:07:14 2016 > >> New Revision

r259278 - Remove references to autotools build.

2016-01-29 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Jan 29 18:54:42 2016 New Revision: 259278 URL: http://llvm.org/viewvc/llvm-project?rev=259278&view=rev Log: Remove references to autotools build. Modified: cfe/trunk/CODE_OWNERS.TXT cfe/trunk/www/get_started.html Modified: cfe/trunk/CODE_OWNERS.TXT URL: http:/

[libcxx] r259281 - [docs] Remove references to autoconf build.

2016-01-29 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Jan 29 19:11:42 2016 New Revision: 259281 URL: http://llvm.org/viewvc/llvm-project?rev=259281&view=rev Log: [docs] Remove references to autoconf build. Modified: libcxx/trunk/docs/BuildingLibcxx.rst Modified: libcxx/trunk/docs/BuildingLibcxx.rst URL: http://llvm.o

Re: r253958 - Reduce the stack usage per recursive step when RecursiveASTVisitor cannot perform data recursion.

2015-11-24 Thread Alexey Samsonov via cfe-commits
Looks like Clang::Index/index-many-call-ops.cpp still uses too much stack in ASan mode: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap/builds/10177/steps/check-clang%20asan/logs/stdio ASan increases the stack usage, so do you think there's more to fix here, or we should just di

Re: r253958 - Reduce the stack usage per recursive step when RecursiveASTVisitor cannot perform data recursion.

2015-11-24 Thread Alexey Samsonov via cfe-commits
Unfortunately, that change breaks the Clang compilation, see r254041 review thread. On Tue, Nov 24, 2015 at 3:54 PM, Richard Smith wrote: > On Tue, Nov 24, 2015 at 1:16 PM, Alexey Samsonov > wrote: > >> Looks like Clang::Index/index-many-call-ops.cpp still uses too much stack >> in ASan mode: >

Re: r254041 - Teach RAV to pass its DataRecursionQueue to derived classes if they ask for it,

2015-11-24 Thread Alexey Samsonov via cfe-commits
Hm, looks like we can't compile Clang itself after this change (with GCC): http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/12237 On Tue, Nov 24, 2015 at 3:50 PM, Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Tue Nov 24 17:50:

Re: r254041 - Teach RAV to pass its DataRecursionQueue to derived classes if they ask for it,

2015-11-24 Thread Alexey Samsonov via cfe-commits
Unfortunately, the bot still seems to be unhappy: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/12246/steps/build%20fresh%20clang/logs/stdio On Tue, Nov 24, 2015 at 6:45 PM, Richard Smith wrote: > Hah, looks like a rejects-valid, but it found a real bug, so *shrug*. =)

Re: [PATCH] D15208: Patch for inline abort code generation

2015-12-03 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. I agree with Richard here. Repository: rL LLVM http://reviews.llvm.org/D15208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r254672 - [Docs] Sanitizer docs migrated from code.google.com to github.com.

2015-12-03 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Thu Dec 3 18:38:13 2015 New Revision: 254672 URL: http://llvm.org/viewvc/llvm-project?rev=254672&view=rev Log: [Docs] Sanitizer docs migrated from code.google.com to github.com. Modified: cfe/trunk/docs/AddressSanitizer.rst cfe/trunk/docs/LeakSanitizer.rst cfe/

r254733 - Clang documentation for UBSan.

2015-12-04 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Dec 4 11:30:29 2015 New Revision: 254733 URL: http://llvm.org/viewvc/llvm-project?rev=254733&view=rev Log: Clang documentation for UBSan. Summary: Create a separate page describing UBSan tool, move the description of fine-grained checks there, provide extra information

Re: [PATCH] D15217: Clang documentation for UBSan.

2015-12-04 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Thanks! Addressed the comments. Repository: rL LLVM http://reviews.llvm.org/D15217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15217: Clang documentation for UBSan.

2015-12-04 Thread Alexey Samsonov via cfe-commits
This revision was automatically updated to reflect the committed changes. samsonov marked 5 inline comments as done. Closed by commit rL254733: Clang documentation for UBSan. (authored by samsonov). Changed prior to commit: http://reviews.llvm.org/D15217?vs=41823&id=41891#toc Repository: rL

r254734 - [Docs] Remove false claim: UBSan can also be combined with TSan/MSan.

2015-12-04 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Dec 4 11:35:47 2015 New Revision: 254734 URL: http://llvm.org/viewvc/llvm-project?rev=254734&view=rev Log: [Docs] Remove false claim: UBSan can also be combined with TSan/MSan. Modified: cfe/trunk/docs/UsersManual.rst Modified: cfe/trunk/docs/UsersManual.rst URL:

[PATCH] D15237: [Docs] Use proper headling levels in CFI doc.

2015-12-04 Thread Alexey Samsonov via cfe-commits
samsonov created this revision. samsonov added reviewers: pcc, kcc. samsonov added a subscriber: cfe-commits. Before that, all sections were considered a subsection of "Introduction". [Docs] Move the list of CFI schemes down to CFI doc, and update it. http://reviews.llvm.org/D15237 Files: doc

Re: [PATCH] D15237: [Docs] Use proper headling levels in CFI doc.

2015-12-04 Thread Alexey Samsonov via cfe-commits
samsonov updated this revision to Diff 41905. samsonov marked 3 inline comments as done. samsonov added a comment. - Address pcc's comments. http://reviews.llvm.org/D15237 Files: docs/ControlFlowIntegrity.rst docs/UsersManual.rst Index: docs/UsersManual.rst

Re: [PATCH] D15237: [Docs] Use proper headling levels in CFI doc.

2015-12-04 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: docs/ControlFlowIntegrity.rst:23 @@ -22,6 +22,3 @@ To enable Clang's available CFI schemes, use the flag ``-fsanitize=cfi``. -As currently implemented, all of Clang's CFI schemes (``cfi-vcall``, -``cfi-derived-cast``, ``cfi-unrelated-ca

r254771 - [Docs] Move the list of CFI schemes down to CFI doc, and update it.

2015-12-04 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Dec 4 15:30:58 2015 New Revision: 254771 URL: http://llvm.org/viewvc/llvm-project?rev=254771&view=rev Log: [Docs] Move the list of CFI schemes down to CFI doc, and update it. Use proper headling levels in CFI doc. Before that, all sections were considered a subsection

Re: [PATCH] D15237: [Docs] Use proper headling levels in CFI doc.

2015-12-04 Thread Alexey Samsonov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL254771: [Docs] Move the list of CFI schemes down to CFI doc, and update it. (authored by samsonov). Changed prior to commit: http://reviews.llvm.org/D15237?vs=41905&id=41933#toc Repository: rL LLVM

[PATCH] D15246: [Docs] Update MSan docs

2015-12-04 Thread Alexey Samsonov via cfe-commits
samsonov created this revision. samsonov added reviewers: eugenis, kcc. samsonov added a subscriber: cfe-commits. 1. Move MSan-specific flags and features from user manual to MSan page. 2. Update current status / list of supported platforms. http://reviews.llvm.org/D15246 Files: docs/MemorySan

Re: [PATCH] D15246: [Docs] Update MSan docs

2015-12-04 Thread Alexey Samsonov via cfe-commits
samsonov marked 2 inline comments as done. samsonov added a comment. Addressed, thanks! http://reviews.llvm.org/D15246 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r254788 - [Docs] Update MSan docs

2015-12-04 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Dec 4 16:50:44 2015 New Revision: 254788 URL: http://llvm.org/viewvc/llvm-project?rev=254788&view=rev Log: [Docs] Update MSan docs Summary: 1. Move MSan-specific flags and features from user manual to MSan page. 2. Update current status / list of supported platforms.

Re: [PATCH] D15246: [Docs] Update MSan docs

2015-12-04 Thread Alexey Samsonov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL254788: [Docs] Update MSan docs (authored by samsonov). Changed prior to commit: http://reviews.llvm.org/D15246?vs=41941&id=41946#toc Repository: rL LLVM http://reviews.llvm.org/D15246 Files: cfe/

r254798 - [Docs] One more cleanup of -fsanitize= section.

2015-12-04 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Fri Dec 4 17:13:14 2015 New Revision: 254798 URL: http://llvm.org/viewvc/llvm-project?rev=254798&view=rev Log: [Docs] One more cleanup of -fsanitize= section. Describe -fsanitize-blacklist flags in separate paragraphs, move notes about importance of clang++ for vptr down t

Re: [PATCH] D15225: [Driver] Sanitizer support based on runtime library presence

2015-12-07 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: include/clang/Driver/ToolChain.h:410 @@ -407,1 +409,3 @@ + /// (don't require runtime library). + virtual SanitizerMask getSanitizersRequiringTrap() const; }; I don't think this is relevant to ToolChain at all. `Sanit

r254961 - Add llvm-objdump to compiler-rt test deps.

2015-12-07 Thread Alexey Samsonov via cfe-commits
Author: samsonov Date: Mon Dec 7 16:45:36 2015 New Revision: 254961 URL: http://llvm.org/viewvc/llvm-project?rev=254961&view=rev Log: Add llvm-objdump to compiler-rt test deps. Modified: cfe/trunk/runtime/CMakeLists.txt Modified: cfe/trunk/runtime/CMakeLists.txt URL: http://llvm.org/viewvc

Re: r254935 - AST: defer to TypeLoc::copy in TypeLoc::initializeFullCopy

2015-12-07 Thread Alexey Samsonov via cfe-commits
Thanks for taking care of this! On Mon, Dec 7, 2015 at 12:04 PM, Justin Bogner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: bogner > Date: Mon Dec 7 14:04:57 2015 > New Revision: 254935 > > URL: http://llvm.org/viewvc/llvm-project?rev=254935&view=rev > Log: > AST: defer to Type

Re: [PATCH] D15208: Patch for inline abort code generation

2015-12-08 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Sorry for the late response. Ugh, flag naming is hard, and it's far too complicated for sanitizers already. However, I'm opposed to passing this down as `-fsanitize=` option =/. So far we're trying to make values of `-fsanitize=` correspond *only* to different kinds o

Re: [PATCH] D15208: Patch for inline abort code generation

2015-12-08 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. That is, I presume it's highly unlikely user will need to have fine-grained setup for deciding which UBSan checks should be merged, and which should not. So, probably having a single `-fsanitize-merge-traps` / `-fno-sanitize-merge-traps` option would be enough. I'd li

Re: [PATCH] D15208: Patch for inline abort code generation

2015-12-08 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. That is, I presume it's highly unlikely user will need to have fine-grained setup for deciding which UBSan checks should be merged, and which should not. So, probably having a single `-fsanitize-merge-traps` / `-fno-sanitize-merge-traps` option would be enough. I'd li

[PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2015-12-08 Thread Alexey Samsonov via cfe-commits
samsonov created this revision. samsonov added reviewers: rsmith, kcc. samsonov added a subscriber: cfe-commits. Add the ability to suppress UBSan reports for files/functions/modules at runtime. The user can now pass UBSAN_OPTIONS=suppressions=supp.txt with the contents of the form: signed-intege

Re: [PATCH] D15208: Patch for inline abort code generation

2015-12-09 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Please consider adding a test case. Comment at: include/clang/Basic/LangOptions.h:95 @@ -94,1 +94,3 @@ + /// \brief Flag controlling whether or not trap calls are merged + /// at the end of each function. Why is it a language, not c

Re: [PATCH] D15208: Patch for inline abort code generation

2015-12-09 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2543 @@ +2542,3 @@ + // RE: Bug: 25682 + if(!getLangOpts().mergeTraps) { + llvm::InlineAsm *EmptyAsm = llvm::InlineAsm::get(llvm::FunctionType::get(CGM.VoidTy, false), danielaustin wrote:

Re: [PATCH] D15225: [Driver] Sanitizer support based on runtime library presence

2015-12-10 Thread Alexey Samsonov via cfe-commits
samsonov added inline comments. Comment at: test/Driver/fsanitize.c:221 @@ +220,3 @@ +// RUN: %clang -target x86_64-apple-darwin10 -resource-dir=%S/Inputs/resource_dir -fsanitize=memory -fsanitize=thread,memory %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MSAN-TSAN-MSAN-DARW

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2015-12-14 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Richard, could you take a look at this? http://reviews.llvm.org/D15363 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2015-12-16 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. Kostya, PTAL. IIRC it was your feature request :) http://reviews.llvm.org/D15363 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D15598: [Driver] Make AddCXXStdlibLibArgs responsible for handling -static-libstdc++.

2015-12-16 Thread Alexey Samsonov via cfe-commits
samsonov created this revision. samsonov added reviewers: rafael, compnerd. samsonov added a subscriber: cfe-commits. After this change, AddCXXStdlibLibArgs will check the presence of -static-libstdc++ flag and, if necessary, wrap -lc++/-lstdc++ in -Bstatic/-Bdynamic to force static linking of C++

Re: [PATCH] D15624: Add iOS/watchOS/tvOS support for ASan (clang part)

2015-12-17 Thread Alexey Samsonov via cfe-commits
samsonov added a subscriber: samsonov. Comment at: lib/Driver/ToolChains.cpp:368 @@ +367,3 @@ + StringRef OS = ""; + if (isTargetMacOS()) +OS = "osx"; Wait, this looks horrible. Can we teach toolchain to give us OS name? http://reviews.llvm.org/D15624 _

Re: [PATCH] D15363: [UBSan] Implement runtime suppressions (PR25066).

2015-12-18 Thread Alexey Samsonov via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL256018: [UBSan] Implement runtime suppressions (PR25066). (authored by samsonov). Changed prior to commit: http://reviews.llvm.org/D15363?vs=42250&id=43254#toc Repository: rL LLVM http://reviews.llv

Re: [PATCH] D15598: [Driver] Make AddCXXStdlibLibArgs responsible for handling -static-libstdc++.

2015-12-18 Thread Alexey Samsonov via cfe-commits
samsonov added a comment. In http://reviews.llvm.org/D15598#314127, @rafael wrote: > I am not sure what is "expected" is here: Interesting. I was assuming that Clang tends to understand "-lstdc++" as a special argument that says "link against C++ standard library", not "link against libstdc++

Re: [PATCH] D15598: [Driver] Make AddCXXStdlibLibArgs responsible for handling -static-libstdc++.

2015-12-18 Thread Alexey Samsonov via cfe-commits
On Fri, Dec 18, 2015 at 3:20 PM, Rafael EspĂ­ndola < rafael.espind...@gmail.com> wrote: > On 18 December 2015 at 18:13, Alexey Samsonov wrote: > > samsonov added a comment. > > > > In http://reviews.llvm.org/D15598#314127, @rafael wrote: > > > >> I am not sure what is "expected" is here: > > > > >