From: Claudiu Zissulescu Date: Mon, 2 May 2016 09:37:17 +0000 (+0200) Subject: Fix warnings, update source code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd1e4d417a91f4e802e745c8ff6cc6d88a2e96c1;p=gcc.git 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 --- 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;