From 41bc2c0b217d727aa516978cac54594d00498411 Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Tue, 19 Dec 2017 16:11:20 +0100 Subject: [PATCH] [ARC][COMMITTED] Clean up build warnings. 2017-12-19 Claudiu Zissulescu * config/arc/arc.c (legitimate_scaled_address_p): Clean fall-through warning. (arc_compute_frame_size): Remove unused variables. (arc_print_operand): Fix fprintif format. (arc_can_follow_jump): Clean fall-through warning. From-SVN: r255827 --- gcc/ChangeLog | 8 ++++++++ gcc/config/arc/arc.c | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 54d5b25a894..caa6d51100c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-12-19 Claudiu Zissulescu + + * config/arc/arc.c (legitimate_scaled_address_p): Clean + fall-through warning. + (arc_compute_frame_size): Remove unused variables. + (arc_print_operand): Fix fprintif format. + (arc_can_follow_jump): Clean fall-through warning. + 2017-12-19 Marek Polacek PR c++/83489 diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 3bf331e119f..8ede52eee80 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -311,6 +311,7 @@ legitimate_scaled_address_p (machine_mode mode, rtx op, bool strict) case 4: if (INTVAL (XEXP (XEXP (op, 0), 1)) != 4) return false; + /* Fall through. */ default: return false; } @@ -2746,8 +2747,6 @@ arc_compute_frame_size (void) unsigned int total_size, var_size, args_size, pretend_size, extra_size; unsigned int reg_size, reg_offset; unsigned int gmask; - enum arc_function_type fn_type; - int interrupt_p; struct arc_frame_info *frame_info; int size; @@ -3796,7 +3795,7 @@ arc_print_operand (FILE *file, rtx x, int code) case 'c': if (GET_CODE (x) == CONST_INT) - fprintf (file, "%d", INTVAL (x) ); + fprintf (file, "%ld", INTVAL (x) ); else output_operand_lossage ("invalid operands to %%c code"); @@ -10087,6 +10086,7 @@ arc_can_follow_jump (const rtx_insn *follower, const rtx_insn *followee) case TYPE_BRANCH: if (get_attr_length (u.r) != 2) break; + /* Fall through. */ case TYPE_BRCC: case TYPE_BRCC_NO_DELAY_SLOT: return false; -- 2.30.2