Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2016-01-28 Thread Asiri Rathnayake via cfe-commits
rmaprath added inline comments. Comment at: test/support/noexcept.h:23 @@ +22,3 @@ +// tests use multiple catch statements, in those cases we have to use the +// _LIBCPP_NO_EXCEPTIONS macro and exclude the additional catch statements. +#ifndef _LIBCPP_NO_EXCEPTIONS

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2016-01-27 Thread Marshall Clow via cfe-commits
mclow.lists added inline comments. Comment at: include/__config:847 @@ +846,3 @@ +} +#define _LIBCPP_THROW(E, MSG) __libcxx_noexceptions_report(MSG) +#else // !_LIBCPP_NO_EXCEPTIONS I don't care for having to specify something twice. (E, MSG). Maybe

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2016-01-25 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 45868. rmaprath added a comment. Re-based on trunk. Trivial. http://reviews.llvm.org/D14653 Files: include/__config include/array test/std/containers/sequences/array/at.pass.cpp test/support/noexcept.h test/support/test_allocator.h Index:

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-18 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 43237. rmaprath added a comment. Addressing review comments by @mclow.lists: - Introduced `TEST_TRY` and `TEST_CATCH` macros to avoid the non-standard `#define try/catch`. http://reviews.llvm.org/D14653 Files: include/__config include/array

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-18 Thread Asiri Rathnayake via cfe-commits
rmaprath marked an inline comment as done. rmaprath added a comment. http://reviews.llvm.org/D14653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-17 Thread Marshall Clow via cfe-commits
mclow.lists added inline comments. Comment at: test/support/noexcept.h:43 @@ +42,3 @@ +#define try if(!setjmp(try_buf)) +#define catch(ex) else + This is explicitly forbidden by the standard. [macro.names]/2: A translation unit shall not #define or #undef names

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-16 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42977. rmaprath added a comment. Two minor additions: - Introduced a `TEST_THROW` macro for those tests that need to throw exceptions (Note:- not using the `_LIBCPP_THROW` macro here as we want to keep the tests independent of the standard library

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-16 Thread Asiri Rathnayake via cfe-commits
rmaprath marked 2 inline comments as done. rmaprath added a comment. http://reviews.llvm.org/D14653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-14 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42694. rmaprath added a comment. Simplified the changes to `__config` header. http://reviews.llvm.org/D14653 Files: include/__config include/array test/std/containers/sequences/array/at.pass.cpp test/support/noexcept.h Index:

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-14 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42701. rmaprath added a comment. Further refined the changes to `__config` header. - Now there's only one `_LIBCPP_THROW` macro, which does the right thing depending on the availability of exceptions. - Made `__libcxx_noexceptions_report` not take in the

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-10 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. In http://reviews.llvm.org/D14653#306675, @EricWF wrote: > - I like the approach taken in the library. `__throw_helper` and > `__libcxx_noexceptions_abort()`. However I don't like that they are in their > own header. We should find another header for these to live in.

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-10 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42440. rmaprath added a comment. Addressing review comments by @EricWF: - Introduced `_LIBCPP_THROW` macro to appropriately throw or call the no-exceptions report routine to handle the exceptional situation (avoid the overhead of a function call in the

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-10 Thread Eric Fiselier via cfe-commits
EricWF added a comment. Before you spend time changing the tests to use `TEST_TRY`/`TEST_CATCH` I would like somebody else to weigh in. I don't really think my solution is that great either. @jroelofs, @mclow any thoughts? A couple of more thoughts: - Forget what I said about putting it in .

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-09 Thread Eric Fiselier via cfe-commits
EricWF added a reviewer: EricWF. EricWF added a comment. Sorry I'm late to this party. Please let me know if my concerns have already been discussed. First, thanks for taking on all this work. Getting the test suite passing without exceptions is a tall order. My two cents: - I like the

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-08 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42175. rmaprath added a comment. Addressing review comments by @mclow.lists: Got rid of the `__noexcept` header by moving the `__throw_helper` function into the `__config` header. The `__libcxx_noexceptions_abort` function now takes in an extra parameter

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-08 Thread Jonathan Roelofs via cfe-commits
jroelofs added inline comments. Comment at: test/support/noexcept.h:10 @@ +9,3 @@ +//===--===// +#ifdef _LIBCPP_NO_EXCEPTIONS + You should also add a header guard so that this doesn't get

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-08 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 42178. rmaprath added a comment. Added a header guard to the `noexcept.h` test support header (review comment by @jroelofs). http://reviews.llvm.org/D14653 Files: include/__config include/array test/std/containers/sequences/array/at.pass.cpp

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-04 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. Ping? http://reviews.llvm.org/D14653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-12-01 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. Ping? http://reviews.llvm.org/D14653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-11-25 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. Gentle ping. http://reviews.llvm.org/D14653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-11-20 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 40767. rmaprath added a comment. Addressing review comments: - Fixed a couple of typos. - Made the use of the thread-local storage specifier a bit more flexible to allow testing on few other configurations. http://reviews.llvm.org/D14653 Files:

Re: [PATCH] D14653: [libcxx] Introduce the mechanism for fixing -fno-exceptions test failures.

2015-11-19 Thread scott douglass via cfe-commits
scott-0 added a subscriber: scott-0. scott-0 added a comment. It would be nice if the no-exceptions library called an intermediate helper, for example `__libcxx_noexceptions_abort()`, instead of calling `abort()` directly. Then the user and the tests could provide a replacement for