mbox series

[0/3] Fix broken --enable-gather-detailed-mem-stats build.

Message ID cover.1515744628.git.mliska@suse.cz
Headers show
Series Fix broken --enable-gather-detailed-mem-stats build. | expand

Message

Martin Liška Jan. 12, 2018, 8:10 a.m. UTC
Hi.

Due to changes to qsort where Alexander added new implementation in vec.c,
we need to change Makefile.in. Apart from that qsort_chk triggers errors
for current implementation of compare function. That's also fixed.
Last change is usage of uint64_t for allocation stats counting
of GIMPLE statements and trees.

Patch survives --enable-gather-detailed-mem-stats with and without
--enable-checking=release. I'm testing normal bootstrap and testsuite.

Ready after it finishes?
Thanks,
Martin

marxin (3):
  Fix --enable-gather-detailed-mem-stats build.
  Fix integer overflow in stats of trees.
  Fix integer overflow in stats of GIMPLE statements.

 gcc/Makefile.in  |  3 ++-
 gcc/ggc-common.c | 17 ++++++++++++++++-
 gcc/gimple.c     | 17 ++++++++++-------
 gcc/gimple.h     |  4 ++--
 gcc/mem-stats.h  | 17 ++++++++++++++++-
 gcc/tree-core.h  |  4 ++--
 gcc/tree.c       | 57 +++++++++++++++++++++++++++++++++-----------------------
 gcc/vec.c        | 21 ---------------------
 8 files changed, 82 insertions(+), 58 deletions(-)

Comments

Richard Biener Jan. 12, 2018, 12:30 p.m. UTC | #1
On Fri, Jan 12, 2018 at 9:10 AM, marxin <mliska@suse.cz> wrote:
> Hi.
>
> Due to changes to qsort where Alexander added new implementation in vec.c,
> we need to change Makefile.in. Apart from that qsort_chk triggers errors
> for current implementation of compare function. That's also fixed.
> Last change is usage of uint64_t for allocation stats counting
> of GIMPLE statements and trees.
>
> Patch survives --enable-gather-detailed-mem-stats with and without
> --enable-checking=release. I'm testing normal bootstrap and testsuite.
>
> Ready after it finishes?

Ok.

Richard.

> Thanks,
> Martin
>
> marxin (3):
>   Fix --enable-gather-detailed-mem-stats build.
>   Fix integer overflow in stats of trees.
>   Fix integer overflow in stats of GIMPLE statements.
>
>  gcc/Makefile.in  |  3 ++-
>  gcc/ggc-common.c | 17 ++++++++++++++++-
>  gcc/gimple.c     | 17 ++++++++++-------
>  gcc/gimple.h     |  4 ++--
>  gcc/mem-stats.h  | 17 ++++++++++++++++-
>  gcc/tree-core.h  |  4 ++--
>  gcc/tree.c       | 57 +++++++++++++++++++++++++++++++++-----------------------
>  gcc/vec.c        | 21 ---------------------
>  8 files changed, 82 insertions(+), 58 deletions(-)
>
> --
> 2.14.3
>