]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/79399 (GCC fails to compile big source at -O0)
authorJakub Jelinek <jakub@redhat.com>
Tue, 7 Feb 2017 21:51:21 +0000 (22:51 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 7 Feb 2017 21:51:21 +0000 (22:51 +0100)
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

gcc/ChangeLog
gcc/ira-costs.c
gcc/ira-int.h

index c5f5f13d5c9dad7d34f28145f9cb75b9a6189829..034bc5f13dfd8eb5128d213fd87673dff73e9208 100644 (file)
@@ -1,3 +1,11 @@
+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
index c3bddb7f7d09b338dcabd7bb4042458c85789490..c561db6a3897d2b41315f3e430e329dcd754ca8e 100644 (file)
@@ -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.  */
index 073ec07d9bf6270a05e88057b3f40cbd1f4690b3..f547cead7d7caf237b8324b845a6bbea4eb5275f 100644 (file)
@@ -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.  */