From cd1e4d417a91f4e802e745c8ff6cc6d88a2e96c1 Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Mon, 2 May 2016 11:37:17 +0200 Subject: [PATCH] Fix warnings, update source code. include/ 2016-05-02 Claudiu Zissulescu * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword. (arc_save_restore): Likewise. (arc_dwarf_register_span): Likewise. (arc_output_pic_addr_const): Initialize suffix variable. From-SVN: r235718 --- gcc/ChangeLog | 7 +++++++ gcc/config/arc/arc.c | 9 +++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a48bf291f2..b3edd2aaaf5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2016-05-02 Claudiu Zissulescu + + * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword. + (arc_save_restore): Likewise. + (arc_dwarf_register_span): Likewise. + (arc_output_pic_addr_const): Initialize suffix variable. + 2016-05-02 Martin Liska * symbol-summary.h (function_summary::function_summary): diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index a54fddb45d3..49edc0a7f65 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -264,8 +264,8 @@ arc_vector_mode_supported_p (machine_mode mode) /* Implements target hook TARGET_VECTORIZE_PREFERRED_SIMD_MODE. */ -static enum machine_mode -arc_preferred_simd_mode (enum machine_mode mode) +static machine_mode +arc_preferred_simd_mode (machine_mode mode) { switch (mode) { @@ -2347,7 +2347,7 @@ arc_save_restore (rtx base_reg, for (regno = 0; regno <= 31; regno++) { - enum machine_mode mode = SImode; + machine_mode mode = SImode; bool found = false; if (TARGET_LL64 @@ -5124,6 +5124,7 @@ arc_output_pic_addr_const (FILE * file, rtx x, int code) suffix = "@dtpoff"; break; default: + suffix = "@invalid"; output_operand_lossage ("invalid UNSPEC as operand: %d", XINT (x,1)); break; } @@ -9847,7 +9848,7 @@ arc_no_speculation_in_delay_slots_p () static rtx arc_dwarf_register_span (rtx rtl) { - enum machine_mode mode = GET_MODE (rtl); + machine_mode mode = GET_MODE (rtl); unsigned regno; rtx p; -- 2.30.2