Fix --enable-gather-detailed-mem-stats build.
authorMartin Liska <mliska@suse.cz>
Fri, 12 Jan 2018 14:43:58 +0000 (15:43 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 12 Jan 2018 14:43:58 +0000 (14:43 +0000)
commitb27b31dc2d160453e7b05168f1dd195e73cb176b
treea6dbb2f5ef07d7accb9a8d71b0c192cb21e1b696
parent4a0d0ed28fe9695b95e30b5aea4e45c78420d359
Fix --enable-gather-detailed-mem-stats build.

2018-01-12  Martin Liska  <mliska@suse.cz>

* Makefile.in: As qsort_chk is implemented in vec.c, add
vec.o to linkage of gencfn-macros.
* tree.c (build_new_poly_int_cst): Add CXX_MEM_STAT_INFO as it's
passing the info to record_node_allocation_statistics.
(test_vector_cst_patterns): Add CXX_MEM_STAT_INFO to declaration
and pass the info.
* ggc-common.c (struct ggc_usage): Add operator== and use
it in operator< and compare function.
* mem-stats.h (struct mem_usage): Likewise.
* vec.c (struct vec_usage): Remove operator< and compare
function. Can be simply inherited.

From-SVN: r256582
gcc/ChangeLog
gcc/Makefile.in
gcc/ggc-common.c
gcc/mem-stats.h
gcc/tree.c
gcc/vec.c