aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-02-07 22:51:21 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2017-02-07 22:51:21 +0100
commitff304c01119739245b3e89cd1b2a4171700d4926 (patch)
treebbf1be9afd672c2cd6cc75386329be42c0cedf55
parent26349ecf304ce17acd06e4cb8c631b706d2f1c35 (diff)
downloadgcc-ff304c01119739245b3e89cd1b2a4171700d4926.zip
gcc-ff304c01119739245b3e89cd1b2a4171700d4926.tar.gz
gcc-ff304c01119739245b3e89cd1b2a4171700d4926.tar.bz2
re PR middle-end/79399 (GCC fails to compile big source at -O0)
PR middle-end/79399 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size type from int to size_t. * ira-costs.c (struct_costs_size): Change type from int to size_t. Co-Authored-By: Richard Biener <rguenther@suse.de> From-SVN: r245256
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/ira-costs.c2
-rw-r--r--gcc/ira-int.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c5f5f13..034bc5f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,4 +1,12 @@
2017-02-07 Jakub Jelinek <jakub@redhat.com>
+ Richard Biener <rguenther@suse.de>
+
+ PR middle-end/79399
+ * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
+ type from int to size_t.
+ * ira-costs.c (struct_costs_size): Change type from int to size_t.
+
+2017-02-07 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/79386
* cprop.c (bypass_conditional_jumps): Initialize
diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c
index c3bddb7..c561db6 100644
--- a/gcc/ira-costs.c
+++ b/gcc/ira-costs.c
@@ -74,7 +74,7 @@ static struct costs *costs;
static struct costs *total_allocno_costs;
/* It is the current size of struct costs. */
-static int struct_costs_size;
+static size_t struct_costs_size;
/* Return pointer to structure containing costs of allocno or pseudo
with given NUM in array ARR. */
diff --git a/gcc/ira-int.h b/gcc/ira-int.h
index 073ec07..f547cea 100644
--- a/gcc/ira-int.h
+++ b/gcc/ira-int.h
@@ -782,7 +782,7 @@ struct target_ira_int {
/* Initialized once. It is a maximal possible size of the allocated
struct costs. */
- int x_max_struct_costs_size;
+ size_t x_max_struct_costs_size;
/* Allocated and initialized once, and used to initialize cost values
for each insn. */