qsort comparator consistency checking
authorAlexander Monakov <amonakov@ispras.ru>
Fri, 29 Sep 2017 16:00:15 +0000 (19:00 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Fri, 29 Sep 2017 16:00:15 +0000 (19:00 +0300)
commit9e686ea1c952dd513cf98c2cec464b3533ba763c
tree1cfc0484d5e64853823c1322638c2787aa3877ce
parentcd644ae2bc0ce62b88f786ce5a68ad0ba2509ec6
qsort comparator consistency checking

* genmodes.c (calc_wider_mode): Suppress qsort macro.
* system.h [CHECKING_P] (qsort): Redirect to qsort_chk.
(qsort_chk): Declare.
* vec.c [CHECKING_P] (qsort_chk_error): New static function.
(qsort_chk): New function.

From-SVN: r253295
gcc/ChangeLog
gcc/genmodes.c
gcc/system.h
gcc/vec.c