Fix --enable-gather-detailed-mem-stats build.
commit267c6bca6ca7c452545141bf52f4ce0dcae52b9f
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2018 14:43:58 +0000 (12 14:43 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 12 Jan 2018 14:43:58 +0000 (12 14:43 +0000)
treea6dbb2f5ef07d7accb9a8d71b0c192cb21e1b696
parented306e55b845ec9fcc095bbf4c92513ce6dee046
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256582 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/Makefile.in
gcc/ggc-common.c
gcc/mem-stats.h
gcc/tree.c
gcc/vec.c