This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][Committed] [ARC] Fix warnings, update source code.
- From: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Cc: <Claudiu dot Zissulescu at synopsys dot com>, <gnu at amylaar dot uk>, <Francois dot Bedard at synopsys dot com>
- Date: Mon, 2 May 2016 11:30:17 +0200
- Subject: [PATCH][Committed] [ARC] Fix warnings, update source code.
- Authentication-results: sourceware.org; auth=none
Small syntactic fixes. Committed as obvious.
Best,
Claudiu
include/
2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
* 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.
---
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 fecfdab..35b24f5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,12 @@
2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
+ * 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 Claudiu Zissulescu <claziss@synopsys.com>
+
* config/arc/arc-protos.h (compact_memory_operand_p): Declare.
* config/arc/arc.c (arc_output_commutative_cond_exec): Consider
bmaskn instruction.
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index a54fddb..49edc0a 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;
--
1.9.1