summaryrefslogtreecommitdiff
path: root/gcc/vec.c
diff options
context:
space:
mode:
authorAlexander Monakov <amonakov@ispras.ru>2018-05-13 21:23:06 +0300
committerAlexander Monakov <amonakov@gcc.gnu.org>2018-05-13 21:23:06 +0300
commit82a04cd1d37bfaf10de8f648e35d40c91853d026 (patch)
tree0f08f3d658c0f7ea3c270d1428051151b0c20614 /gcc/vec.c
parent628332f85dbcd0996f68afae47b2b6d134b7b268 (diff)
Introduce gcc_qsort
* sort.cc: New file. * system.h [!CHECKING_P] (qsort): Redirect to gcc_qsort. * vec.c (qsort_chk): Use gcc_qsort. * Makefile.in (OBJS-libcommon): Add sort.o. (build/sort.o): New target. Use it... (BUILD_RTL): ... here, and... (build/gencfn-macros): ... here, and... (build/genmatch): ... here. From-SVN: r260216
Diffstat (limited to 'gcc/vec.c')
-rw-r--r--gcc/vec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/vec.c b/gcc/vec.c
index 11924a80a2d..2941715a34a 100644
--- a/gcc/vec.c
+++ b/gcc/vec.c
@@ -215,7 +215,7 @@ void
qsort_chk (void *base, size_t n, size_t size,
int (*cmp)(const void *, const void *))
{
- (qsort) (base, n, size, cmp);
+ gcc_qsort (base, n, size, cmp);
#if 0
#define LIM(n) (n)
#else