Replace direct PSTL uses of assert() with a macro
authorThomas Rodgers <trodgers@redhat.com>
Thu, 11 Apr 2019 20:40:40 +0000 (20:40 +0000)
committerThomas Rodgers <rodgertq@gcc.gnu.org>
Thu, 11 Apr 2019 20:40:40 +0000 (20:40 +0000)
commit9eda9f9231f287599413c684351b16576f2ee4d2
treed5f63e7dfbdd1473b295e0fba6c44701ed978092
parentc00d68e89ef6553435a3f2e373a90fa8e5077445
Replace direct PSTL uses of assert() with a macro

This also replaces calls to __TBB_ASSERT so that there are two macro
definitions provided by c++config -
    __PSTL_ASSERT(_Condition)
    __PSTL_ASSERT_MSG(_Condition, _Message)

    * include/bits/c++config:
    Add definition for __PSTL_ASSERT.
    Add definition for __PSTL_ASSERT_MSG.
    * include/pstl/algorithm_impl.h: Replace use of assert().
    * include/pstl/numeric_impl.h: Replace use of assert().
    * include/pstl/parallel_backend_tbb.h:
    Replace use of assert().
    Replace use of __TBB_ASSERT().

    * include/pstl/parallel_backend_utils.h: Replace use of assert().

From-SVN: r270293
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/pstl/algorithm_impl.h
libstdc++-v3/include/pstl/numeric_impl.h
libstdc++-v3/include/pstl/parallel_backend_tbb.h
libstdc++-v3/include/pstl/parallel_backend_utils.h