aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-01-12 15:47:26 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-01-12 14:47:26 +0000
commit33b366c3d4e96c37b60d440edff64f915cc1aaaf (patch)
treed74c032a2ed76fefc4ee3ce3417b5d327e3b0f01 /gcc/gimple.h
parent00e4d22dc1e8224e090be6dac970fe583e8f39ac (diff)
downloadgcc-33b366c3d4e96c37b60d440edff64f915cc1aaaf.zip
gcc-33b366c3d4e96c37b60d440edff64f915cc1aaaf.tar.gz
gcc-33b366c3d4e96c37b60d440edff64f915cc1aaaf.tar.bz2
Fix integer overflow in stats of GIMPLE statements.
2018-01-12 Martin Liska <mliska@suse.cz> * gimple.c (gimple_alloc_counts): Use uint64_t instead of int. (gimple_alloc_sizes): Likewise. (dump_gimple_statistics): Use PRIu64 in printf format. * gimple.h: Change uint64_t to int. From-SVN: r256584
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index 8c0e9ae..281015a 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -6386,8 +6386,8 @@ enum gimple_alloc_kind
gimple_alloc_kind_all
};
-extern int gimple_alloc_counts[];
-extern int gimple_alloc_sizes[];
+extern uint64_t gimple_alloc_counts[];
+extern uint64_t gimple_alloc_sizes[];
/* Return the allocation kind for a given stmt CODE. */
static inline enum gimple_alloc_kind