Add vec::reverse.
authorMartin Liska <mliska@suse.cz>
Tue, 29 May 2018 09:55:02 +0000 (11:55 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 29 May 2018 09:55:02 +0000 (09:55 +0000)
commitc04f64807ee5e911741290aafc90d17618a02dca
treeedf1890fb08bd388e0654ec0a86b1dfadec70166
parent86e74d5869813c22b946d76e7dbe960ef0a0c1f2
Add vec::reverse.

2018-05-29  Martin Liska  <mliska@suse.cz>
    David Malcolm  <dmalcolm@redhat.com>

* vec.c (test_reverse): New.
(vec_c_tests): Add new test.
* vec.h (vl_ptr>::reverse): New function.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
From-SVN: r260890
gcc/ChangeLog
gcc/vec.c
gcc/vec.h