]> git.ipfire.org Git - thirdparty/gcc.git/commit
Replace direct PSTL uses of assert() with a macro
authorrodgertq <rodgertq@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Apr 2019 20:40:40 +0000 (20:40 +0000)
committerrodgertq <rodgertq@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Apr 2019 20:40:40 +0000 (20:40 +0000)
commit34d8d757fec434f6e555c06afb607bfc15d04746
treed5f63e7dfbdd1473b295e0fba6c44701ed978092
parentff35b5f56ee66b4f81335a95d35e89a1db1dbe4d
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().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270293 138bc75d-0d04-0410-961f-82ee72b054a4
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