[gcc(refs/users/meissner/heads/work005-orig)] powerpc: Restore bootstrap for Darwin.
Michael Meissner
meissner@gcc.gnu.org
Fri Jun 26 18:05:13 GMT 2020
https://gcc.gnu.org/g:8005a3e4e7a643ff78086081a3385775924fe828
commit 8005a3e4e7a643ff78086081a3385775924fe828
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Thu Jun 25 08:56:23 2020 +0100
powerpc: Restore bootstrap for Darwin.
Darwin has signed chars and the fields in the insn_data
struct are const char, which leads to the fail.
gcc/ChangeLog:
* config/rs6000/rs6000-call.c (mma_init_builtins): Cast
the insn_data n_operands value to unsigned.
Diff:
---
gcc/config/rs6000/rs6000-call.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
index d8b85347cc8..3a109fe626f 100644
--- a/gcc/config/rs6000/rs6000-call.c
+++ b/gcc/config/rs6000/rs6000-call.c
@@ -13437,7 +13437,7 @@ mma_init_builtins (void)
{
/* This is a normal MMA built-in function. */
unsigned j = (attr & RS6000_BTC_QUAD) ? 1 : 0;
- for (; j < insn_data[icode].n_operands; j++)
+ for (; j < (unsigned) insn_data[icode].n_operands; j++)
{
machine_mode mode = insn_data[icode].operand[j].mode;
if (gimple_func && mode == PXImode)
More information about the Gcc-cvs
mailing list