Add VEC_ORDERED_REMOVE_IF
authorTom de Vries <tom@codesourcery.com>
Tue, 1 May 2018 19:16:43 +0000 (19:16 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 1 May 2018 19:16:43 +0000 (19:16 +0000)
commitb94c2dc138c60636e3898b04c1026cbb1b868b26
treee99c38252e340bc2e91a93e586b47cdf8ba5aaf3
parent2cc7d3a7da20bcfd854302b1f265c6551b8a3741
Add VEC_ORDERED_REMOVE_IF

2018-05-01  Tom de Vries  <tom@codesourcery.com>

PR other/83786
* vec.h (VEC_ORDERED_REMOVE_IF, VEC_ORDERED_REMOVE_IF_FROM_TO): Define.
* vec.c (test_ordered_remove_if): New function.
(vec_c_tests): Call test_ordered_remove_if.
* dwarf2cfi.c (connect_traces): Use VEC_ORDERED_REMOVE_IF_FROM_TO.
* lto-streamer-out.c (prune_offload_funcs): Use VEC_ORDERED_REMOVE_IF.
* tree-vect-patterns.c (vect_pattern_recog_1): Use
VEC_ORDERED_REMOVE_IF.

From-SVN: r259808
gcc/ChangeLog
gcc/dwarf2cfi.c
gcc/lto-streamer-out.c
gcc/tree-vect-patterns.c
gcc/vec.c
gcc/vec.h