diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2020-06-25 08:56:23 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2020-06-25 14:15:00 +0100 |
commit | 8005a3e4e7a643ff78086081a3385775924fe828 (patch) | |
tree | 08f7d8402850cadea9441e7b26f5f3151fc311a2 | |
parent | f530bac8a11da9c85bdd8e58d589747f9825e38d (diff) | |
download | gcc-8005a3e4e7a643ff78086081a3385775924fe828.zip gcc-8005a3e4e7a643ff78086081a3385775924fe828.tar.gz gcc-8005a3e4e7a643ff78086081a3385775924fe828.tar.bz2 |
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.
-rw-r--r-- | gcc/config/rs6000/rs6000-call.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c index d8b8534..3a109fe 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) |