]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR target/70630 (sparc bootstrap failure: sparc.c:4919:6: error: suggest explicit...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 12 Apr 2016 20:56:11 +0000 (20:56 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 12 Apr 2016 20:56:11 +0000 (20:56 +0000)
2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>

PR target/70630
* config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.

From-SVN: r234920

gcc/ChangeLog
gcc/config/sparc/sparc.c

index e8c7f2d6be1b71ae178b14ec1e84634b7e14f031..828338e55650ddf7d766ecb9754da0638495475b 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR target/70630
+       * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
+
 2016-04-11  Alan Modra  <amodra@gmail.com>
 
        PR target/70117
index a1aeecb76b229f1b93aabe7875fcd9d0291ebfae..4d80c17829da186ee4443720bbc78a957b332d1b 100644 (file)
@@ -4980,13 +4980,18 @@ sparc_compute_frame_size (HOST_WIDE_INT size, int leaf_function)
 
   /* Calculate space needed for global registers.  */
   if (TARGET_ARCH64)
-    for (i = 0; i < 8; i++)
-      if (save_global_or_fp_reg_p (i, 0))
-       n_global_fp_regs += 2;
+    {
+      for (i = 0; i < 8; i++)
+       if (save_global_or_fp_reg_p (i, 0))
+         n_global_fp_regs += 2;
+    }
   else
-    for (i = 0; i < 8; i += 2)
-      if (save_global_or_fp_reg_p (i, 0) || save_global_or_fp_reg_p (i + 1, 0))
-       n_global_fp_regs += 2;
+    {
+      for (i = 0; i < 8; i += 2)
+       if (save_global_or_fp_reg_p (i, 0)
+           || save_global_or_fp_reg_p (i + 1, 0))
+         n_global_fp_regs += 2;
+    }
 
   /* In the flat window model, find out which local and in registers need to
      be saved.  We don't reserve space in the current frame for them as they