]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR middle-end/79399 (GCC fails to compile big source at -O0)
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 07:57:10 +0000 (09:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 07:57:10 +0000 (09:57 +0200)
Backported from mainline
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.

From-SVN: r248641

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

index 760d4e02d7837853955165c52ec005626f2910c5..5d4bf121eda1509e8276f7acb66fcd68220d2384 100644 (file)
@@ -1,6 +1,14 @@
 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
 
        Backported from mainline
+       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-02  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/79197
index 354ba6ba06342d4739d53af80e6ecc3e7f39b0b8..3e8fb1997d7fbab005138a8f4f855c3df239c03f 100644 (file)
@@ -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.  */
index c1c545cc11f94e6b98f85ce6b0787282b4155ccc..cca54593d9c317d5285793a39432d63a937ad255 100644 (file)
@@ -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.  */