powerpc: Restore bootstrap for Darwin.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 25 Jun 2020 07:56:23 +0000 (08:56 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Thu, 25 Jun 2020 13:15:00 +0000 (14:15 +0100)
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

index d8b8534..3a109fe 100644 (file)
@@ -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)