diff mbox series

[ARC,COMMITTED] Clean up build warnings.

Message ID 20171219145723.21010-1-claziss@gmail.com
State New
Headers show
Series [ARC,COMMITTED] Clean up build warnings. | expand

Commit Message

Claudiu Zissulescu Ianculescu Dec. 19, 2017, 2:57 p.m. UTC
Committed as obvious.

//Claudiu

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.
---
 gcc/ChangeLog        | 8 ++++++++
 gcc/config/arc/arc.c | 6 +++---
 2 files changed, 11 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f6af469c856..eb6afc8853e 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  Claudiu Zissulescu  <claziss@synopsys.com>
 
 	* config/arc/arc.c (overriderregs): New variable.
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;