From fa0533fcfc81da7c5360ebe202e3892a2cefbadc Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 30 May 2017 09:57:10 +0200 Subject: [PATCH] backport: re PR middle-end/79399 (GCC fails to compile big source at -O0) Backported from mainline 2017-02-07 Jakub Jelinek Richard Biener 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. From-SVN: r248641 --- gcc/ChangeLog | 8 ++++++++ gcc/ira-costs.c | 2 +- gcc/ira-int.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 760d4e02d783..5d4bf121eda1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,14 @@ 2017-05-30 Jakub Jelinek Backported from mainline + 2017-02-07 Jakub Jelinek + Richard Biener + + 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-02 Jakub Jelinek PR target/79197 diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index 354ba6ba0634..3e8fb1997d7f 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -103,7 +103,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 c1c545cc11f9..cca54593d9c3 100644 --- a/gcc/ira-int.h +++ b/gcc/ira-int.h @@ -784,7 +784,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. */ -- 2.47.2