From: Jakub Jelinek Date: Tue, 7 Feb 2017 21:51:21 +0000 (+0100) Subject: re PR middle-end/79399 (GCC fails to compile big source at -O0) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff304c01119739245b3e89cd1b2a4171700d4926;p=gcc.git 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 From-SVN: r245256 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5f5f13d5c9..034bc5f13df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +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-07 Jakub Jelinek PR rtl-optimization/79386 diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index c3bddb7f7d0..c561db6a389 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 073ec07d9bf..f547cead7d7 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. */