diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-04-12 20:55:05 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-04-12 20:55:05 +0000 |
commit | 5445cf2af128cdd1b8b85999b6ae6d41030d1fcb (patch) | |
tree | 36afea7cee6135ee6ed0048c1409f3b0318a41b9 /gcc | |
parent | 08d6d8bb00d6feddc6916739276aeea4600cd188 (diff) | |
download | gcc-5445cf2af128cdd1b8b85999b6ae6d41030d1fcb.zip gcc-5445cf2af128cdd1b8b85999b6ae6d41030d1fcb.tar.gz gcc-5445cf2af128cdd1b8b85999b6ae6d41030d1fcb.tar.bz2 |
re PR target/70630 (sparc bootstrap failure: sparc.c:4919:6: error: suggest explicit braces to avoid ambiguous 'else')
2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
PR target/70630
* config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
From-SVN: r234918
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 17 |
2 files changed, 16 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 949ab9e..4ce05df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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-12 Jakub Jelinek <jakub@redhat.com> * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen): diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 080be61..082af3c 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -4917,13 +4917,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 |