summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-26 03:41:19 +0000
committervmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4>2012-10-26 03:41:19 +0000
commit6b58d3cb69308c06f5ed166113cd3ffbeafefc22 (patch)
tree869dbf2b0d8f489e6bc7511dc205c5d57d54cc16
parent4ccfa7c7f5e2fca508683e68b1fe49e9b662f02d (diff)
downloadppe42-gcc-6b58d3cb69308c06f5ed166113cd3ffbeafefc22.tar.gz
ppe42-gcc-6b58d3cb69308c06f5ed166113cd3ffbeafefc22.zip
2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
* lra-int.h (lra_assert): Redefine it gcc_checking_assert. * lra-constraints.c (check_and_process_move): Remove #if ENABLE_ASSERT_CHECKING. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192832 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/lra-constraints.c2
-rw-r--r--gcc/lra-int.h8
3 files changed, 7 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4cda585bbd6..1fd2aaeee4b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
+
+ * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
+ * lra-constraints.c (check_and_process_move): Remove #if
+ ENABLE_ASSERT_CHECKING.
+
2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c
index 4b357261bbe..f3729d203fc 100644
--- a/gcc/lra-constraints.c
+++ b/gcc/lra-constraints.c
@@ -1204,10 +1204,8 @@ check_and_process_move (bool *change_p, bool *sec_mem_p)
|| ((secondary_class != NO_REGS || sri.icode != CODE_FOR_nothing)
&& dclass != NO_REGS))
{
-#if ENABLE_ASSERT_CHECKING
enum reg_class old_sclass = secondary_class;
secondary_reload_info old_sri = sri;
-#endif
sri.prev_sri = NULL;
sri.icode = CODE_FOR_nothing;
diff --git a/gcc/lra-int.h b/gcc/lra-int.h
index d00cc12feff..f88145b7e73 100644
--- a/gcc/lra-int.h
+++ b/gcc/lra-int.h
@@ -25,13 +25,7 @@ along with GCC; see the file COPYING3. If not see
#include "insn-attr.h"
#include "insn-codes.h"
-#ifdef ENABLE_CHECKING
-#define lra_assert(c) gcc_assert (c)
-#else
-/* Always define and include C, so that warnings for empty body in an
- ‘if’ statement and unused variable do not occur. */
-#define lra_assert(c) ((void)(0 && (c)))
-#endif
+#define lra_assert(c) gcc_checking_assert (c)
/* The parameter used to prevent infinite reloading for an insn. Each
insn operands might require a reload and, if it is a memory, its
OpenPOWER on IntegriCloud