diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2017-12-19 16:11:20 +0100 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gcc.gnu.org> | 2017-12-19 16:11:20 +0100 |
commit | 41bc2c0b217d727aa516978cac54594d00498411 (patch) | |
tree | f0de364ac3ca5148d23900a25ec38f10c9303d33 /gcc | |
parent | 00452511a0388b612eaaef262820004a42009ee4 (diff) | |
download | gcc-41bc2c0b217d727aa516978cac54594d00498411.zip gcc-41bc2c0b217d727aa516978cac54594d00498411.tar.gz gcc-41bc2c0b217d727aa516978cac54594d00498411.tar.bz2 |
[ARC][COMMITTED] Clean up build warnings.
2017-12-19 Claudiu Zissulescu <claziss@synopsys.com>
* 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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/arc/arc.c | 6 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 54d5b25..caa6d51 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2017-12-19 Claudiu Zissulescu <claziss@synopsys.com> + + * 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 <polacek@redhat.com> PR c++/83489 diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 3bf331e..8ede52e 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; |