From 8005a3e4e7a643ff78086081a3385775924fe828 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Thu, 25 Jun 2020 08:56:23 +0100 Subject: [PATCH] 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. --- 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) -- 2.30.2