From c38151e46e89a09d04ba7d4567cb01ca41737d3f Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 1 Jun 2016 21:38:46 +0000 Subject: [PATCH] rl78.c: fix warning gcc/ChangeLog: * config/rl78/rl78.c (rl78_expand_prologue): Convert local from int to unsigned. From-SVN: r237017 --- gcc/ChangeLog | 5 +++++ gcc/config/rl78/rl78.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fb0bab2a9d..9cfde95962d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-06-01 David Malcolm + + * config/rl78/rl78.c (rl78_expand_prologue): Convert local + from int to unsigned. + 2016-05-31 Michael Meissner * config/rs6000/vsx.md (vsx_splat_, V2DI/V2DF): Simplify diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index 2d850610ea6..3ddb19865b8 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -1378,7 +1378,7 @@ rl78_expand_prologue (void) /* Save MDUC registers inside interrupt routine. */ if (MUST_SAVE_MDUC_REGISTERS && (!crtl->is_leaf || check_mduc_usage ())) { - for (int i = 0; i < ARRAY_SIZE (mduc_regs); i++) + for (unsigned i = 0; i < ARRAY_SIZE (mduc_regs); i++) { mduc_reg_type *reg = mduc_regs + i; rtx mem_mduc = gen_rtx_MEM (reg->mode, GEN_INT (reg->address)); -- 2.30.2