This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed: Fix epiphany --enable-werror-always build errors
- From: Joern Rennecke <joern dot rennecke at embecosm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 Nov 2013 06:06:25 -0500
- Subject: Committed: Fix epiphany --enable-werror-always build errors
- Authentication-results: sourceware.org; auth=none
2013-11-26 Joern Rennecke <joern.rennecke@embecosm.com>
* config/epiphany/epiphany.c (epiphany_expand_prologue):
Remove unused variable save_config.
(epiphany_compute_frame_size): Avoid signed/unsigned comparison in
assert.
Index: config/epiphany/epiphany.c
===================================================================
--- config/epiphany/epiphany.c (revision 205386)
+++ config/epiphany/epiphany.c (working copy)
@@ -1133,7 +1133,7 @@ epiphany_compute_frame_size (int size /*
if (total_size + reg_size <= (unsigned) epiphany_stack_offset)
{
gcc_assert (first_slot < 0);
- gcc_assert (reg_size == 0 || reg_size == epiphany_stack_offset);
+ gcc_assert (reg_size == 0 || (int) reg_size == epiphany_stack_offset);
last_slot_offset = EPIPHANY_STACK_ALIGN (total_size + reg_size);
}
else
@@ -1694,7 +1694,6 @@ epiphany_expand_prologue (void)
int interrupt_p;
enum epiphany_function_type fn_type;
rtx addr, mem, off, reg;
- rtx save_config;
if (!current_frame_info.initialized)
epiphany_compute_frame_size (get_frame_size ());